mirror of
https://github.com/scratchfoundation/paper.js.git
synced 2024-12-29 09:22:22 -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;
|
||||
var that = this, curPoint;
|
||||
var events = {
|
||||
mousedown: function(e) {
|
||||
dragstart: function(e) {
|
||||
curPoint = new Point(e.offset);
|
||||
that.onHandleEvent('MOUSE_DOWN', curPoint, null, null);
|
||||
if(that.onMouseDown)
|
||||
|
|
Loading…
Reference in a new issue