diff --git a/src/interaction/InteractionManager.js b/src/interaction/InteractionManager.js index 5838151..0677d7d 100644 --- a/src/interaction/InteractionManager.js +++ b/src/interaction/InteractionManager.js @@ -152,6 +152,13 @@ this.last = 0; /** + * Every update cursor will be reset to this value, if some element wont override it in its hitTest + * @member {string} + * @default "inherit" + */ + this.defaultCursorStyle = "inherit"; + + /** * The css style of the cursor that is being used * @member {string} */ @@ -295,7 +302,7 @@ return; } - this.cursor = 'inherit'; + this.cursor = this.defaultCursorStyle; this.processInteractive(this.mouse.global, this.renderer._lastObjectRendered, this.processMouseOverOut, true ); @@ -593,7 +600,7 @@ this.didMove = true; - this.cursor = 'inherit'; + this.cursor = this.defaultCursorStyle; this.processInteractive(this.mouse.global, this.renderer._lastObjectRendered, this.processMouseMove, true ); @@ -639,7 +646,7 @@ // Update internal mouse reference this.mapPositionToPoint( this.mouse.global, event.clientX, event.clientY); - this.interactionDOMElement.style.cursor = 'inherit'; + this.interactionDOMElement.style.cursor = this.defaultCursorStyle; // TODO optimize by not check EVERY TIME! maybe half as often? // this.mapPositionToPoint( this.mouse.global, event.clientX, event.clientY );