1
0
Fork 0
mirror of https://github.com/anyproto/anytype-ts.git synced 2025-06-08 05:57:02 +09:00

JS-376: fix

This commit is contained in:
Andrew Simachev 2025-02-27 20:47:45 +01:00
parent ddc2d3d408
commit dfb3c1996d
No known key found for this signature in database
GPG key ID: 1DFE44B21443F0EF

View file

@ -134,10 +134,10 @@ class ScrollOnMove {
const edgeLeft = BORDER;
const edgeBottom = this.viewportHeight - BORDER;
const edgeRight = this.viewportWidth - BORDER;
const isInLeftEdge = x < edgeLeft;
const isInLeftEdge = (x > 0) && (x < edgeLeft);
const isInRightEdge = x > edgeRight;
const isInTopEdge = y < edgeTop;
const isInTopEdge = (y > 0) && (y < edgeTop);
const isInBottomEdge = y > edgeBottom;
if (!(isInLeftEdge || isInRightEdge || isInTopEdge || isInBottomEdge)) {