No way to intercept mouse events going to an IMA with another MA
Bug #1207426 reported by
Olivier Tilloy
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Ubuntu UI Toolkit |
Fix Released
|
High
|
Zsombor Egri | ||
notes-app (Ubuntu) |
Fix Released
|
Undecided
|
Unassigned | ||
ubuntu-ui-toolkit (Ubuntu) |
Fix Released
|
Undecided
|
Unassigned |
Bug Description
I expect to be able to intercept mouse events going to an IMA by placing a MA "on top of it" and swallowing mouse events.
Unfortunately it seems it doesn’t work as I expect, it looks like the IMA is positioned on top of any other item in the application, so I can’t intercept its events. See the attached standalone example.
Note that this is causing bug #1207291 in the browser: since revision 665 in lp:ubuntu-ui-toolkit, flicking the suggestions list in the browser is impossible as it dismisses the list immediately.
Related branches
lp:~zsombi/ubuntu-ui-toolkit/inversemousearea-refactoring
- Tim Peeters: Approve
- Olivier Tilloy (community): Approve
- PS Jenkins bot: Approve (continuous-integration)
-
Diff: 761 lines (+124/-410)12 files modifiedcomponents.api (+1/-14)
modules/Ubuntu/Components/plugin/inversemouseareatype.cpp (+3/-341)
modules/Ubuntu/Components/plugin/inversemouseareatype.h (+3/-41)
tests/unit/unit.pro (+0/-1)
tests/unit_x11/add_makecheck.pri (+16/-0)
tests/unit_x11/test-include.pri (+6/-0)
tests/unit_x11/tst_components/tst_inversemousearea.qml (+21/-7)
tests/unit_x11/tst_inversemousearea/InverseMouseAreaInWindow.qml (+2/-0)
tests/unit_x11/tst_inversemousearea/OverlappedMouseArea.qml (+53/-0)
tests/unit_x11/tst_inversemousearea/tst_inversemousearea.pro (+3/-1)
tests/unit_x11/tst_inversemousearea/tst_inversemouseareatest.cpp (+15/-4)
tests/unit_x11/unit_x11.pro (+1/-1)
lp:~amanzi-team/notes-app/notes-app-event-propagation
- PS Jenkins bot: Approve (continuous-integration)
- Zsombor Egri (community): Approve
-
Diff: 146 lines (+123/-1)2 files modifiedComponents/NoteItem.qml (+7/-1)
tests/autopilot/notes_app/tests/test_expand_collapse.py (+116/-0)
Changed in ubuntu-ui-toolkit: | |
status: | New → In Progress |
importance: | Undecided → High |
Changed in ubuntu-ui-toolkit: | |
status: | Fix Committed → Fix Released |
To post a comment you must log in.
Checked the bugs mentioned, and seems that we have problems with touch events (as mouse events on desktop seems to work well).