mirror of
https://github.com/xibyte/jsketcher
synced 2025-12-13 11:54:01 +01:00
Retina support / dragging
This commit is contained in:
parent
06ebb2f3b3
commit
6c51a1e83d
1 changed files with 2 additions and 2 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Reference in a new issue