-
Notifications
You must be signed in to change notification settings - Fork 13
Open
Description
I find that the y component of property "iMouse" is wrong.
In the callback function of “mouseMove” and "mouseDown", the code is
# mouseMove
var mouseY = _this.canvasPosition.height - clientY - _this.canvasPosition.top - window.pageYOffset;
# mouseDown
var mouseY = _this.canvasPosition.height - clientY - _this.canvasPosition.top;
it should be
# mouseMove
var mouseY = _this.canvasPosition.height - clientY + _this.canvasPosition.top - window.pageYOffset;
# mouseDown
var mouseY = _this.canvasPosition.height - clientY + _this.canvasPosition.top;
Metadata
Metadata
Assignees
Labels
No labels