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:
parent
ddc2d3d408
commit
dfb3c1996d
1 changed files with 3 additions and 3 deletions
|
@ -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)) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue