mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-11-22 15:40:19 +00:00
WindowServer: Remove weird feature where Ctrl+Wheel changed opacity
This feature had been there since early on and was not actually useful for anything. I just added it because it was fun. In retrospect, it's not a very good feature and I only ever activated it by accident.
This commit is contained in:
parent
e4e94cd43d
commit
370d3749e5
Notes:
sideshowbarker
2024-07-18 12:05:02 +09:00
Author: https://github.com/awesomekling Commit: https://github.com/SerenityOS/serenity/commit/370d3749e55
1 changed files with 0 additions and 11 deletions
|
@ -1022,17 +1022,6 @@ void WindowManager::process_mouse_event(MouseEvent& event, Window*& hovered_wind
|
|||
}
|
||||
}
|
||||
|
||||
if (m_keyboard_modifiers == Mod_Super && event.type() == Event::MouseWheel) {
|
||||
float opacity_change = -event.wheel_delta() * 0.05f;
|
||||
float new_opacity = window.opacity() + opacity_change;
|
||||
if (new_opacity < 0.05f)
|
||||
new_opacity = 0.05f;
|
||||
if (new_opacity > 1.0f)
|
||||
new_opacity = 1.0f;
|
||||
window.set_opacity(new_opacity);
|
||||
return;
|
||||
}
|
||||
|
||||
VERIFY(window.hit_test(event.position()));
|
||||
if (event.type() == Event::MouseDown) {
|
||||
// We're clicking on something that's blocked by a modal window.
|
||||
|
|
Loading…
Reference in a new issue