Skip to content

Commit

Permalink
chore: skip redundant checks when scroll configs are off
Browse files Browse the repository at this point in the history
  • Loading branch information
Bush2021 committed Mar 29, 2024
1 parent beb848c commit 98654cf
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/TabBookmark.h
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,8 @@ IniConfig config;
// 滚轮切换标签页
bool handleMouseWheel(WPARAM wParam, LPARAM lParam, PMOUSEHOOKSTRUCT pmouse)
{
if (wParam != WM_MOUSEWHEEL)
if (wParam != WM_MOUSEWHEEL ||
(!config.IsWheelTab && !config.IsWheelTabWhenPressRButton))
{
return false;
}
Expand Down Expand Up @@ -216,6 +217,7 @@ bool handleBookmarkMenu(WPARAM wParam, LPARAM lParam, PMOUSEHOOKSTRUCT pmouse)
{
if (config.IsBookmarkNewTab == "foreground")
{
DebugLog(L"MButton + Shift");
SendKeys(VK_MBUTTON, VK_SHIFT);
}
else if (config.IsBookmarkNewTab == "background")
Expand Down

0 comments on commit 98654cf

Please sign in to comment.