fix coordsToPixels calls even more
This commit is contained in:
parent
f023a18069
commit
b13587456d
1 changed files with 2 additions and 2 deletions
|
@ -778,11 +778,11 @@ const JIT = {
|
||||||
yPix = Util.coordsToPixels(Visualize.mGraph, pos).y;
|
yPix = Util.coordsToPixels(Visualize.mGraph, pos).y;
|
||||||
|
|
||||||
if(self.dragFlag === 0){
|
if(self.dragFlag === 0){
|
||||||
self.mouseDownPix = Util.coordsToPixels(eventInfo.getPos());
|
self.mouseDownPix = Util.coordsToPixels(Visualize.mGraph, eventInfo.getPos());
|
||||||
self.dragFlag = 1;
|
self.dragFlag = 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
if(Util.getDistance(Util.coordsToPixels(pos),self.mouseDownPix) > 2 && !self.dragTolerance){
|
if(Util.getDistance(Util.coordsToPixels(Visualize.mGraph, pos),self.mouseDownPix) > 2 && !self.dragTolerance){
|
||||||
self.dragTolerance = 1;
|
self.dragTolerance = 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue