mirror of
https://github.com/scratchfoundation/paper.js.git
synced 2025-01-03 19:45:44 -05:00
Add explanation about View#_itemEvents.native.
This commit is contained in:
parent
5fa0810ca3
commit
b40ff49523
1 changed files with 3 additions and 0 deletions
|
@ -1182,6 +1182,9 @@ new function() { // Injection scope for event handling on the browser
|
||||||
*/
|
*/
|
||||||
_handleMouseEvent: function(type, event, point) {
|
_handleMouseEvent: function(type, event, point) {
|
||||||
var itemEvents = this._itemEvents,
|
var itemEvents = this._itemEvents,
|
||||||
|
// Look up hitItems, which tells us whether a given native mouse
|
||||||
|
// event requires an item hit-test or not, before changing type
|
||||||
|
// to the virtual value (e.g. mousemove -> mousedrag):
|
||||||
hitItems = itemEvents.native[type],
|
hitItems = itemEvents.native[type],
|
||||||
tool = this._scope.tool,
|
tool = this._scope.tool,
|
||||||
view = this;
|
view = this;
|
||||||
|
|
Loading…
Reference in a new issue