mirror of
https://github.com/scratchfoundation/paper.js.git
synced 2025-01-01 02:38:43 -05:00
Use dragstart event instead of mousedown, to go with drag and dragend.
This commit is contained in:
parent
2b626be502
commit
c6b5b11b1e
1 changed files with 1 additions and 1 deletions
|
@ -13,7 +13,7 @@ Tool = ToolHandler.extend({
|
||||||
this._document = doc || Paper.document;
|
this._document = doc || Paper.document;
|
||||||
var that = this, curPoint;
|
var that = this, curPoint;
|
||||||
var events = {
|
var events = {
|
||||||
mousedown: function(e) {
|
dragstart: function(e) {
|
||||||
curPoint = new Point(e.offset);
|
curPoint = new Point(e.offset);
|
||||||
that.onHandleEvent('MOUSE_DOWN', curPoint, null, null);
|
that.onHandleEvent('MOUSE_DOWN', curPoint, null, null);
|
||||||
if(that.onMouseDown)
|
if(that.onMouseDown)
|
||||||
|
|
Loading…
Reference in a new issue