Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

onMouseMove only fires when mouse is pressed #126

Open
thomasjonas opened this issue Jan 31, 2019 · 0 comments
Open

onMouseMove only fires when mouse is pressed #126

thomasjonas opened this issue Jan 31, 2019 · 0 comments

Comments

@thomasjonas
Copy link

thomasjonas commented Jan 31, 2019

In the source I found the following code for handling the mousemove event:

onMouseMove: function (event) {
	if (window._blockMouseEvents || !this._mouseDown) return;
	this.processEvent(event);
	this.props.onMouseMove && this.props.onMouseMove(event);
},

Why is it necessary to check if the mouse is pressed (!this._mouseDown)? I would like to listen to mousemove events when the mouse is not down which is not possible now. Can somebody try to explain the reasoning behind this?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant