hidden header allows clicking the back button while animating away
Bug #1478147 reported by
Michael Zanetti
This bug affects 2 people
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
ubuntu-ui-toolkit (Ubuntu) |
Fix Released
|
Undecided
|
Tim Peeters |
Bug Description
Create a Page with a hidden header:
head {
visible: false
locked: true
}
When pushing this page to the stack, the header will hide by animating to the top. During this animation the back button can be seen and also be pressed which causes the page to be popped from the stack.
This is especially problematic when pushing a regular page (with normal header) on top of the one with the hidden header. The user can then do a double-tap on the back button and pop both pages from the stack, even though the developer explicitly restricted that by hiding the header.
Related branches
lp:~tpeeters/ubuntu-ui-toolkit/disable_buttons_when_animating_bug1478147
- Cris Dywan: Approve
- PS Jenkins bot: Approve (continuous-integration)
-
Diff: 158 lines (+70/-12)3 files modifiedsrc/Ubuntu/Components/1.2/AppHeader.qml (+7/-0)
src/Ubuntu/Components/1.3/AppHeader.qml (+7/-0)
tests/unit_x11/tst_components/tst_header_visible.qml (+56/-12)
Changed in ubuntu-ui-toolkit (Ubuntu): | |
assignee: | nobody → Christian Dywan (kalikiana) |
assignee: | Christian Dywan (kalikiana) → nobody |
Changed in ubuntu-ui-toolkit (Ubuntu): | |
status: | Confirmed → Fix Committed |
To post a comment you must log in.
I found a workaround by adding:
backAction: Action { visible: false }
to the header configuration. This additionally gets rid of the back button. I'll leave this bug open as I still think that MouseAreas in the header should be disabled while its hiding animation is running.