Skip to content

Commit b71972f

Browse files
committed
Reverted dragX/Y calc.
1 parent 228ca47 commit b71972f

3 files changed

Lines changed: 7 additions & 7 deletions

File tree

v3/src/checksum.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
var CHECKSUM = {
2-
build: '924a0380-72e9-11e7-a431-216550643abb'
2+
build: '3a5d2280-72ec-11e7-8b11-6305b5d0c265'
33
};
44
module.exports = CHECKSUM;

v3/src/input/local/components/ProcessDragEvents.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -137,8 +137,8 @@ var ProcessDragEvents = function (pointer, time)
137137
// input.dragX = pointer.x - (input.localX - gameObject.displayOriginX);
138138
// input.dragY = pointer.y - (input.localY - gameObject.displayOriginY);
139139

140-
input.dragX = pointer.x - input.localX;
141-
input.dragY = pointer.y - input.localY;
140+
// input.dragX = pointer.x - input.localX;
141+
// input.dragY = pointer.y - input.localY;
142142

143143
this.events.dispatch(new InputEvent.DRAG(pointer, gameObject));
144144

v3/src/input/local/events/DragEvent.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -24,12 +24,12 @@ var DragEvent = new Class({
2424
this.x = pointer.x;
2525
this.y = pointer.y;
2626

27-
this.dragX = gameObject.input.dragX;
28-
this.dragY = gameObject.input.dragY;
27+
// this.dragX = gameObject.input.dragX;
28+
// this.dragY = gameObject.input.dragY;
2929

3030
// The local x/y coordinates of the event within the Game Object
31-
// this.dragX = pointer.x - gameObject.input.dragX;
32-
// this.dragY = pointer.y - gameObject.input.dragY;
31+
this.dragX = pointer.x - gameObject.input.dragX;
32+
this.dragY = pointer.y - gameObject.input.dragY;
3333
}
3434

3535
});

0 commit comments

Comments
 (0)