mirror of
https://github.com/konvajs/konva.git
synced 2025-11-18 17:17:49 +08:00
fixed stage drag and drop bug on tablets
This commit is contained in:
@@ -17,7 +17,7 @@ function log(message) {
|
||||
*/
|
||||
function Test() {
|
||||
//this.testOnly = 'EVENTS - mousedown mouseup mouseover mouseout mousemove click dblclick / touchstart touchend touchmove tap dbltap';
|
||||
this.testOnly = '';
|
||||
this.testOnly = 'DRAG AND DROP - drag and drop stage';
|
||||
this.counter = 0;
|
||||
|
||||
testCounter = document.createElement('div');
|
||||
|
||||
@@ -1388,7 +1388,7 @@ Test.prototype.tests = {
|
||||
width: 578,
|
||||
height: 200,
|
||||
draggable: true,
|
||||
dragConstraint: 'horizontal',
|
||||
//dragConstraint: 'horizontal',
|
||||
/*
|
||||
dragBounds: {
|
||||
left: 100
|
||||
@@ -1421,6 +1421,7 @@ Test.prototype.tests = {
|
||||
//stage.draggable(false);
|
||||
//layer.draggable(false);
|
||||
|
||||
/*
|
||||
stage.on('dragstart', function() {
|
||||
console.log('dragstart');
|
||||
});
|
||||
@@ -1430,6 +1431,7 @@ Test.prototype.tests = {
|
||||
stage.on('dragend', function() {
|
||||
console.log('dragend');
|
||||
});
|
||||
*/
|
||||
|
||||
layer.add(circle);
|
||||
stage.add(layer);
|
||||
|
||||
Reference in New Issue
Block a user