-
-
Notifications
You must be signed in to change notification settings - Fork 967
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Implement notification dismissal #323
Implement notification dismissal #323
Conversation
I guess this wouldn't work with different types of touch sensors often
found in P8 watches. Correct me if I'm wrong.
Or at least keep this in mind. Thanks.
|
Why not? (I don't really know). I have a P8 on the way (sealed), I am not very aware of the differences between models though |
72171e6
to
cb81a9b
Compare
The feature seems nice, but the scroll direction a bit wrong. |
How is it wrong? Swiping down is going to move the next message (without clearing it), swiping up will hide the notifications panel. Swiping left or right is how some phone email clients are exposing the delete or other options related to a message. What would you suggest as an alternative? |
Now it is dismiss on double tap; should be less jarring (video updated) |
Is it possible to add a setting that allows switching between swipe to dismiss and tap to dismiss? I understand for some sensors one may work better than another, but I think making which method it uses into a setting would be good for those with certain mobility issues or those who want something more familiar. I understand this may be a lot to ask but I honestly think making it a setting would be the ideal solution. |
Edit: there is limited support for saving settings to flash. See https://github.com/JF002/InfiniTime/blob/develop/src/components/settings/Settings.cpp for implementation. |
I don't think the issue ever was the gesture. The issue was that swiping left caused the screen to move down. I think the swipe gesture should be brought back but the animation should be changed. Just changing the |
I know this might make it harder but is it possible to: |
Is this PR still work in progress? |
If I understand correctly, the issue is that during a swipe to the side, the screen would scroll down, which felt unnatural. I think using the settings screen transition during notification dismissal might help with that. |
Maybe long tap to dismiss? Prompt "All" or "Single" even? |
Not really, although if something needs to be adjusted I can do that
Swiping to the side should animate the notification going to the side as well, but that was a lot slower and it felt really bad IMO |
How did you implement it? Swiping left and right between watchface and quicksettings is fast so why wouldn't this be? It's technically not moving, but it gives the same feeling. |
I agree, we cannot move the notification laterally is a way that would be visually nice, unfortunately. I was thinking about using the same animation than for the quick setting menu, for example. However, what's everyone's opinion? What do you think of the current UI (double tap to dismiss a notification) ? Maybe it's good enough in this current state? |
Since I would dismiss notifications a lot, I would prefer the faster gesture (the swipe) with the settings animation. |
I think the animation used in quicksettings would work well here too if implemented well. It could even be thought of as the notification getting shredded, which would be appropriate. |
@DavidVentura what's your opinion about this transition effect with the swipe gesture? |
Any updates on this? |
Hi!
Sorry I've left this hanging
Changing the gesture is only a 1-line change,
Applications::TouchEvents::DoubleTap to the side swipes, and the swipe
direction goes from FullRefresh::Up to Left/Right (and Full/Partial)
To me, the other combinations *felt* wrong, but give it a shot! I don't
mind really if you prefer it in a different way
|
As I've mentioned earlier, I don't think just changing the animation direction is enough. The animation will be barely visible because the screen barely changes, so I think a black frame needs to be added in between showing the two notifications. Then it would be slide left animation to black, then slide up/down the new notification. It's been some time since I tested this, so I don't exactly remember what the difference between If you don't want to do this, then it's fine, but I would hope this gets improved in the future. |
running = false; | ||
} | ||
} | ||
return false; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This should return true, because the touch event was handled in app.
Is this still being looked at?... first time looking at this thing and was swiping like an idiot to delete numerous notifications which lead me to here lol |
Would it be possible to first implement it with a double tap to get the feature at all and then figure out a proper way to animate it with gestures. It seems to me like a not so important detail is holding back this pretty useful feature although it could just be sorted out afterwards... |
There's multiple aspects in play here that I would like to point out.
|
This fixes #176 and also fixes #272
Issues with swiping worked around by using Double-Tap instead of swipe
doc_2021-05-04_14-05-35.mp4