mirror of
https://github.com/scratchfoundation/paper.js.git
synced 2025-01-20 22:39:50 -05:00
Prebuilt module for commit 9201ea973e
This commit is contained in:
parent
61de4a7a1c
commit
b468935fd5
5 changed files with 48 additions and 18 deletions
18
dist/docs/assets/js/paper.js
vendored
18
dist/docs/assets/js/paper.js
vendored
|
@ -9,7 +9,7 @@
|
|||
*
|
||||
* All rights reserved.
|
||||
*
|
||||
* Date: Wed Oct 3 10:18:15 2018 +0200
|
||||
* Date: Wed Oct 3 10:22:49 2018 +0200
|
||||
*
|
||||
***
|
||||
*
|
||||
|
@ -12127,8 +12127,14 @@ var DomEvent = {
|
|||
for (var type in events) {
|
||||
var func = events[type],
|
||||
parts = type.split(/[\s,]+/g);
|
||||
for (var i = 0, l = parts.length; i < l; i++)
|
||||
el.addEventListener(parts[i], func, false);
|
||||
for (var i = 0, l = parts.length; i < l; i++) {
|
||||
var name = parts[i];
|
||||
var options = (
|
||||
el === document
|
||||
&& (name === 'touchstart' || name === 'touchmove')
|
||||
) ? { passive: false } : false;
|
||||
el.addEventListener(name, func, options);
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
|
@ -12884,8 +12890,12 @@ new function() {
|
|||
|| called;
|
||||
}
|
||||
|
||||
if (called && !mouse.move || mouse.down && responds('mouseup'))
|
||||
if (
|
||||
event.cancelable !== false
|
||||
&& (called && !mouse.move || mouse.down && responds('mouseup'))
|
||||
) {
|
||||
event.preventDefault();
|
||||
}
|
||||
},
|
||||
|
||||
_handleKeyEvent: function(type, event, key, character) {
|
||||
|
|
18
dist/paper-core.js
vendored
18
dist/paper-core.js
vendored
|
@ -9,7 +9,7 @@
|
|||
*
|
||||
* All rights reserved.
|
||||
*
|
||||
* Date: Wed Oct 3 10:18:15 2018 +0200
|
||||
* Date: Wed Oct 3 10:22:49 2018 +0200
|
||||
*
|
||||
***
|
||||
*
|
||||
|
@ -12127,8 +12127,14 @@ var DomEvent = {
|
|||
for (var type in events) {
|
||||
var func = events[type],
|
||||
parts = type.split(/[\s,]+/g);
|
||||
for (var i = 0, l = parts.length; i < l; i++)
|
||||
el.addEventListener(parts[i], func, false);
|
||||
for (var i = 0, l = parts.length; i < l; i++) {
|
||||
var name = parts[i];
|
||||
var options = (
|
||||
el === document
|
||||
&& (name === 'touchstart' || name === 'touchmove')
|
||||
) ? { passive: false } : false;
|
||||
el.addEventListener(name, func, options);
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
|
@ -12884,8 +12890,12 @@ new function() {
|
|||
|| called;
|
||||
}
|
||||
|
||||
if (called && !mouse.move || mouse.down && responds('mouseup'))
|
||||
if (
|
||||
event.cancelable !== false
|
||||
&& (called && !mouse.move || mouse.down && responds('mouseup'))
|
||||
) {
|
||||
event.preventDefault();
|
||||
}
|
||||
},
|
||||
|
||||
_handleKeyEvent: function(type, event, key, character) {
|
||||
|
|
6
dist/paper-core.min.js
vendored
6
dist/paper-core.min.js
vendored
File diff suppressed because one or more lines are too long
18
dist/paper-full.js
vendored
18
dist/paper-full.js
vendored
|
@ -9,7 +9,7 @@
|
|||
*
|
||||
* All rights reserved.
|
||||
*
|
||||
* Date: Wed Oct 3 10:18:15 2018 +0200
|
||||
* Date: Wed Oct 3 10:22:49 2018 +0200
|
||||
*
|
||||
***
|
||||
*
|
||||
|
@ -12127,8 +12127,14 @@ var DomEvent = {
|
|||
for (var type in events) {
|
||||
var func = events[type],
|
||||
parts = type.split(/[\s,]+/g);
|
||||
for (var i = 0, l = parts.length; i < l; i++)
|
||||
el.addEventListener(parts[i], func, false);
|
||||
for (var i = 0, l = parts.length; i < l; i++) {
|
||||
var name = parts[i];
|
||||
var options = (
|
||||
el === document
|
||||
&& (name === 'touchstart' || name === 'touchmove')
|
||||
) ? { passive: false } : false;
|
||||
el.addEventListener(name, func, options);
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
|
@ -12884,8 +12890,12 @@ new function() {
|
|||
|| called;
|
||||
}
|
||||
|
||||
if (called && !mouse.move || mouse.down && responds('mouseup'))
|
||||
if (
|
||||
event.cancelable !== false
|
||||
&& (called && !mouse.move || mouse.down && responds('mouseup'))
|
||||
) {
|
||||
event.preventDefault();
|
||||
}
|
||||
},
|
||||
|
||||
_handleKeyEvent: function(type, event, key, character) {
|
||||
|
|
6
dist/paper-full.min.js
vendored
6
dist/paper-full.min.js
vendored
File diff suppressed because one or more lines are too long
Loading…
Reference in a new issue