Skip to content

Commit 4ab09de

Browse files
committed
fix(delay_distance): remove delayOver flag
1 parent 02f28e4 commit 4ab09de

File tree

2 files changed

+0
-16
lines changed

2 files changed

+0
-16
lines changed

src/Draggable/Sensors/DragSensor/DragSensor.js

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -161,7 +161,6 @@ export default class DragSensor extends Sensor {
161161
this.trigger(container, dragStopEvent);
162162

163163
this.dragging = false;
164-
this.delayOver = false;
165164
this.startEvent = null;
166165

167166
this[reset]();
@@ -210,7 +209,6 @@ export default class DragSensor extends Sensor {
210209
this.startEvent = event;
211210

212211
this.mouseDownTimeout = setTimeout(() => {
213-
this.delayOver = true;
214212
target.draggable = true;
215213
this.draggableElement = target;
216214
}, this.options.delay);

src/Draggable/Sensors/Sensor/Sensor.js

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -39,20 +39,6 @@ export default class Sensor {
3939
*/
4040
this.currentContainer = null;
4141

42-
/**
43-
* The distance moved from the first pointer down location, no longer updated after the drag has started
44-
* @property distance
45-
* @type {Number}
46-
*/
47-
this.distance = 0;
48-
49-
/**
50-
* Indicates whether the delay has ended
51-
* @property delayOver
52-
* @type {Boolean}
53-
*/
54-
this.delayOver = false;
55-
5642
/**
5743
* The event of the initial sensor down
5844
* @property startEvent

0 commit comments

Comments
 (0)