Skip to content

Commit

Permalink
Update PR #1107 to fit the UI revamp
Browse files Browse the repository at this point in the history
b92ea92

Signed-off-by: Songlin Jiang <[email protected]>
  • Loading branch information
HollowMan6 committed Nov 21, 2023
1 parent 0b0251b commit bbaf069
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -1099,7 +1099,7 @@ void handleMotionEvent(final int aHandle, final int aDevice, final boolean aFocu
// We shouldn't divide the scale factor when we pass the motion event to the web engine
if (widget instanceof WindowWidget) {
WindowWidget windowWidget = (WindowWidget) widget;
if (!windowWidget.isLibraryVisible()) {
if (windowWidget.isInWebPage()) {
scale = 1.0f;
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -523,6 +523,10 @@ public boolean isAddonsVisible() {
return mViewModel.getIsAddonsVisible().getValue().get();
}

public boolean isInWebPage() {
return !(isLibraryVisible() || isDownloadsVisible() || isWebAppsVisible() || isAddonsVisible() || isCurrentUriBlank());
}

public int getWindowWidth() {
return mWidgetPlacement.width;
}
Expand Down

0 comments on commit bbaf069

Please sign in to comment.