Retina support / dragging

This commit is contained in:
Val Erastov 2015-08-11 23:00:47 -07:00
parent 06ebb2f3b3
commit 6c51a1e83d

View file

@ -745,8 +745,8 @@ TCAD.TWO.PanTool.prototype.mousemove = function(e) {
var dy = e.pageY - this.y;
dy *= -1;
this.viewer.translate.x += dx;
this.viewer.translate.y += dy;
this.viewer.translate.x += dx * this.viewer.retinaPxielRatio;
this.viewer.translate.y += dy * this.viewer.retinaPxielRatio;
this.x = e.pageX;
this.y = e.pageY;