mirror of
https://github.com/konvajs/konva.git
synced 2026-03-03 16:58:33 +08:00
prevent default now occurs in the stage addEvent method
This commit is contained in:
@@ -38,13 +38,6 @@
|
||||
this.element.style.background = 'transparent';
|
||||
this.context = this.element.getContext(contextType);
|
||||
this.setSize(width, height);
|
||||
|
||||
this.element.addEventListener('mousedown', function(evt) {
|
||||
evt.preventDefault();
|
||||
});
|
||||
this.element.addEventListener('touchstart', function(evt) {
|
||||
evt.preventDefault();
|
||||
});
|
||||
},
|
||||
/**
|
||||
* get canvas element
|
||||
|
||||
Reference in New Issue
Block a user