summaryrefslogtreecommitdiff
path: root/src/web
diff options
context:
space:
mode:
authorsyuilo <syuilotan@yahoo.co.jp>2017-06-08 16:13:53 +0900
committersyuilo <syuilotan@yahoo.co.jp>2017-06-08 16:13:53 +0900
commit0da5d3d35e28e44098571ce597c805ad9baa20c3 (patch)
tree6c91cdf8dfffd92a95e892d86eb3a5909a69a2e4 /src/web
parentv2033 (diff)
downloadmisskey-0da5d3d35e28e44098571ce597c805ad9baa20c3.tar.gz
misskey-0da5d3d35e28e44098571ce597c805ad9baa20c3.tar.bz2
misskey-0da5d3d35e28e44098571ce597c805ad9baa20c3.zip
Fix bug
Diffstat (limited to 'src/web')
-rw-r--r--src/web/app/desktop/tags/home-widgets/activity.tag4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/web/app/desktop/tags/home-widgets/activity.tag b/src/web/app/desktop/tags/home-widgets/activity.tag
index b324e1edea..39878e91de 100644
--- a/src/web/app/desktop/tags/home-widgets/activity.tag
+++ b/src/web/app/desktop/tags/home-widgets/activity.tag
@@ -185,11 +185,11 @@
let moveLeft = me.clientX - clickX;
let moveTop = me.clientY - clickY;
- this.zoom = baseZoom + (moveTop / 20);
+ this.zoom = baseZoom + (-moveTop / 20);
this.pos = basePos + moveLeft;
if (this.zoom < 1) this.zoom = 1;
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();
});