mirror of
https://github.com/scratchfoundation/paper.js.git
synced 2025-01-03 19:45:44 -05:00
Fix broken #delta property in mouse-events.
This commit is contained in:
parent
dbc5bd175a
commit
c058e5f664
1 changed files with 1 additions and 1 deletions
|
@ -900,7 +900,7 @@ new function() { // Injection scope for mouse events on the browser
|
|||
// reuse it if we're bubbling.
|
||||
if (!mouseEvent) {
|
||||
mouseEvent = new MouseEvent(
|
||||
type, event, point, target, mouseDown,
|
||||
type, event, point, target,
|
||||
// Calculate delta if prevPoint was passed
|
||||
prevPoint ? point.subtract(prevPoint) : null);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue