diff options
author | Gökay Şatır <gokaysatir@collabora.com> | 2024-05-31 12:45:21 +0300 |
---|---|---|
committer | Szymon Kłos <eszkadev@gmail.com> | 2024-06-01 07:48:25 +0200 |
commit | f846e66c4b14ced92206936d7632df9e9405cb19 (patch) | |
tree | dc9d5b6ea7bc82c4c450186ad9d522829e1b894f | |
parent | Formula bar: buttons: make grid on equably sized columns and fix btn (diff) | |
download | online-f846e66c4b14ced92206936d7632df9e9405cb19.tar.gz online-f846e66c4b14ced92206936d7632df9e9405cb19.zip |
Text selections handles should be active when there is a text selection.
That condition shouldn't be checked before scrolling to selection position.
This fixes "doesn't scroll to searched text" issue.
Signed-off-by: Gökay Şatır <gokaysatir@collabora.com>
Change-Id: I9f901ba2fa15ade5416ad68f62e356e34163c641
-rw-r--r-- | browser/src/layer/tile/CanvasTileLayer.js | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/browser/src/layer/tile/CanvasTileLayer.js b/browser/src/layer/tile/CanvasTileLayer.js index f8b2e39d43..d28f2d69a1 100644 --- a/browser/src/layer/tile/CanvasTileLayer.js +++ b/browser/src/layer/tile/CanvasTileLayer.js @@ -3567,8 +3567,7 @@ L.CanvasTileLayer = L.Layer.extend({ if (!app.isPointVisibleInTheDisplayedArea(new app.definitions.simplePoint(correctedCursor.x1, correctedCursor.y1).toArray()) || !app.isPointVisibleInTheDisplayedArea(new app.definitions.simplePoint(correctedCursor.x2, correctedCursor.y2).toArray())) { - if (!this._selectionHandles.active && - !(app.isFollowingEditor() || app.isFollowingUser()) && + if (!(app.isFollowingEditor() || app.isFollowingUser()) && !this._map.calcInputBarHasFocus()) { this.scrollToPos(new app.definitions.simplePoint(correctedCursor.x1, correctedCursor.y1)); } |