Skip to content
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

Make the manual rotation events useful #6530

Merged
merged 6 commits into from Aug 20, 2020
Merged

Conversation

NiLuJe
Copy link
Member

@NiLuJe NiLuJe commented Aug 19, 2020

Restore a Swap event like before #6309
Implement an Invert one
And keep the fairly useless +90° CW one, but under an accurate name.

Fix #6524


This change is Reviewable

Restore a Swap event like before koreader#6309
Implement an Invert one
And keep the fairly useless +90° CW one, but under an accurate name.

Fix koreader#6524
@NiLuJe
Copy link
Member Author

NiLuJe commented Aug 19, 2020

(Untested as of yet, but the logic feels sound ;p).

@NiLuJe
Copy link
Member Author

NiLuJe commented Aug 19, 2020

Yep, it works.

Sidebar: Modifying a gesture only appears to take after a restart. Is it just me? Ping @yparitcher / @Frenzie

@yparitcher
Copy link
Member

Sidebar: Modifying a gesture only appears to take after a restart. Is it just me? Ping @yparitcher / @Frenzie

not as far as i remember

Copy link
Member

@yparitcher yparitcher left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think toggle sounds better than swap

@yparitcher
Copy link
Member

Yep, it works.

Sidebar: Modifying a gesture only appears to take after a restart. Is it just me? Ping @yparitcher / @Frenzie

If it is a gestures issue, than switching between reader/FM reloads gestures like a restart, so you can use that to debug.

Copy link
Member

@Frenzie Frenzie left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good, didn't test.

@Frenzie Frenzie added this to the 2020.08.1 milestone Aug 19, 2020
@NiLuJe
Copy link
Member Author

NiLuJe commented Aug 19, 2020

I think toggle sounds better than swap

I'll probably settle on Toggle orientation ;).

@NiLuJe
Copy link
Member Author

NiLuJe commented Aug 19, 2020

If it is a gestures issue, than switching between reader/FM reloads gestures like a restart, so you can use that to debug.

That does work. Still puzzled why it doesn't take immediately, though.

@Frenzie
Copy link
Member

Frenzie commented Aug 19, 2020

I think toggle's sensible enough. That's between portrait & landscape or reverse portrait & reverse landscape respectively, right?

@NiLuJe
Copy link
Member Author

NiLuJe commented Aug 19, 2020

I think toggle's sensible enough. That's between portrait & landscape or reverse portrait & reverse landscape respectively, right?

Yup!

@yparitcher
Copy link
Member

Sidebar: Modifying a gesture only appears to take after a restart. Is it just me? Ping @yparitcher / @Frenzie

Can't reproduce, Is it with a specific gesture or a specific action?

frontend/dispatcher.lua Outdated Show resolved Hide resolved
@NiLuJe
Copy link
Member Author

NiLuJe commented Aug 20, 2020

Sidebar: Modifying a gesture only appears to take after a restart. Is it just me? Ping @yparitcher / @Frenzie

Can't reproduce, Is it with a specific gesture or a specific action?

Randomly tested on a (FM) corner tap gesture with nothing/any of those rota ones. The initial switch from nothing to it is... weird. First tap rotates, then nada. Going from something to nothing doesn't exhibit the exact same weirdness (i.e., fully keeps the previous gesture until restart/reload).

@yparitcher
Copy link
Member

Sidebar: Modifying a gesture only appears to take after a restart. Is it just me? Ping @yparitcher / @Frenzie

Can't reproduce, Is it with a specific gesture or a specific action?

Randomly tested on a (FM) corner tap gesture with nothing/any of those rota ones. The initial switch from nothing to it is... weird. First tap rotates, then nada. Going from something to nothing doesn't exhibit the exact same weirdness (i.e., fully keeps the previous gesture until restart/reload).

can confirm, when testing on the rotation one

@yparitcher
Copy link
Member

Does not happen in the reader :(

yparitcher added a commit to yparitcher/koreader that referenced this pull request Aug 20, 2020
when rotation was caused by a gesture the gesture settings were not flushed leading to weird state when the FM reinit reloaded the gestures plugin

discovered in koreader#6530 caused by koreader#6309
@yparitcher
Copy link
Member

Sidebar: Modifying a gesture only appears to take after a restart. Is it just me?

should be fixed by #6532

Frenzie pushed a commit that referenced this pull request Aug 20, 2020
when rotation was caused by a gesture the gesture settings were not flushed leading to weird state when the FM reinit reloaded the gestures plugin

discovered in #6530 caused by #6309
@NiLuJe NiLuJe merged commit 1b904f0 into koreader:master Aug 20, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

'Toggle rotation': toggle back doesn't work
3 participants