Bug 406158 - Mouse wheel behavior over widgets
Summary: Mouse wheel behavior over widgets
Status: RESOLVED NOT A BUG
Alias: None
Product: lattedock
Classification: Plasma
Component: application (show other bugs)
Version: 0.8.7
Platform: Arch Linux Linux
: NOR normal
Target Milestone: ---
Assignee: Michail Vourlakos
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2019-04-02 16:07 UTC by Christian Muehlhaeuser
Modified: 2019-04-02 17:48 UTC (History)
0 users

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Christian Muehlhaeuser 2019-04-02 16:07:24 UTC
SUMMARY

I've added the audio mixer widget to my latte dock. Scrolling down over the widget lowers the volume as expected. However scrolling up behaves differently: it first opens the widget, only the second scroll-up event will then raise the volume.

EXPECTED RESULT

I can only observe this behavior when the audio mixer widget is contained in latte dock. For example in the regular plasma panels, it simply raises the volume on the first "up" event and doesn't slide out the widget altogether. I'd expect it to behave the same within latte dock.
Comment 1 Michail Vourlakos 2019-04-02 17:04:22 UTC
Lock it from applet tooltip
Comment 2 Christian Muehlhaeuser 2019-04-02 17:06:58 UTC
That indeed works, however I don't understand what the lock does here or why it affects the mouse wheel behavior. Can you give me some insight? Thank you!
Comment 3 Michail Vourlakos 2019-04-02 17:12:36 UTC
Lock button disables any Latte specific behavior,

e.g. parabolic effect, Latte tooltips, applet activation through wheel
Comment 4 Christian Muehlhaeuser 2019-04-02 17:18:38 UTC
Yeah, I'm realizing that now: without the parabolic effect it looks a bit alienated in the panel. What is the intention of intercepting the mouse wheel event here? Why should the widget behave differently in latte than elsewhere on the desktop? Can I disable the wheel interaction by any other means, but keep the parabolic effects and tooltips?

I also think the lock button seemingly having a different effect here than in the regular panels feels off to me. This breaks (at least my personal) user expectations in multiple ways: wheel & lock behavior.
Comment 5 Michail Vourlakos 2019-04-02 17:35:57 UTC
There is an option for disabling wheel behavior in v0.8 at Tasks tab 

in master version the option is pretty visible in Behavior page.

Plenty of things work differently in Latte than Plasma, if you think you have a better proposal for things and at the same time does not break current functionality feel free to contribute
Comment 6 Christian Muehlhaeuser 2019-04-02 17:37:38 UTC
I'd love to, but for that I have to first understand the current intentions:

"What is the intention of intercepting the mouse wheel event here? Why should the widget behave differently in latte than elsewhere on the desktop?"
Comment 7 Christian Muehlhaeuser 2019-04-02 17:44:29 UTC
> There is an option for disabling wheel behavior in v0.8 at Tasks tab

Is that also affecting the widgets? What's the definition of Task in latte? I assumed it refers to the taskbar (app icons), but not the widgets.
Comment 8 Michail Vourlakos 2019-04-02 17:48:28 UTC
(In reply to Christian Muehlhaeuser from comment #7)
> > There is an option for disabling wheel behavior in v0.8 at Tasks tab
> 
> Is that also affecting the widgets? What's the definition of Task in latte?
> I assumed it refers to the taskbar (app icons), but not the widgets.

Yep it affects also widgets. Tasks is just the Tasks plasmoid and refers only to the taskbar. That option should be In Behavior tab but it didn't catch up for v0.8

This is why it was moved to Behavior tab to refer both for widgets and tasks