mirror of
https://github.com/misskey-dev/misskey.git
synced 2024-12-25 22:22:51 +09:00
Fix bug
This commit is contained in:
parent
7190dc1f55
commit
0da5d3d35e
@ -185,11 +185,11 @@
|
|||||||
let moveLeft = me.clientX - clickX;
|
let moveLeft = me.clientX - clickX;
|
||||||
let moveTop = me.clientY - clickY;
|
let moveTop = me.clientY - clickY;
|
||||||
|
|
||||||
this.zoom = baseZoom + (moveTop / 20);
|
this.zoom = baseZoom + (-moveTop / 20);
|
||||||
this.pos = basePos + moveLeft;
|
this.pos = basePos + moveLeft;
|
||||||
if (this.zoom < 1) this.zoom = 1;
|
if (this.zoom < 1) this.zoom = 1;
|
||||||
if (this.pos > 0) this.pos = 0;
|
if (this.pos > 0) this.pos = 0;
|
||||||
if (this.pos < -((this.data.length * this.zoom) - this.viewBoxX)) this.pos = -((this.data.length * this.zoom) - this.viewBoxX);
|
if (this.pos < -(((this.data.length - 1) * this.zoom) - this.viewBoxX)) this.pos = -(((this.data.length - 1) * this.zoom) - this.viewBoxX);
|
||||||
|
|
||||||
this.render();
|
this.render();
|
||||||
});
|
});
|
||||||
|
Loading…
Reference in New Issue
Block a user