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

[DO NOT MERGE] Detecting rotation gesture (AutoResizeTextView-based scaling refactor part 2) #208

Conversation

mzorz
Copy link
Contributor

@mzorz mzorz commented Nov 23, 2019

Builds on top of #204

Trying to detect a rotation gesture and applying it to the TextView accordingly.

Known issue: currently this PR has an obvious issue: the coordinate system on the View is changed as we move our fingers so, on each iteration in the stream of MotionEvent the width/height may end up changing. Moving slow enough is useful to get an idea of how the effect is working.
Fixed in 8aac73b

To test:

  1. open the app, take a picture and add an emoji
  2. observe you can pinch to zoom and rotate the emoji accordingly
    Note: the emoji will disappear as per Emoji disappears when zooming in too much #205 until Sets default maximum font size for emoji to 112sp #206 gets merged so, it's expected. Also note, the delete view will not appear while handling the emoji; this is a toDo item in [Primary] Adapt gesture listeners to cope with new width/height fontSize handling #207

@peril-automattic
Copy link

peril-automattic bot commented Nov 23, 2019

You can test the changes on this Pull Request by downloading the APK here.

@mzorz mzorz changed the title WIP - detecting rotation gesture Detecting rotation gesture Nov 23, 2019
@mzorz mzorz requested a review from aforcier November 23, 2019 13:14
@mzorz
Copy link
Contributor Author

mzorz commented Nov 23, 2019

This one should be ready for review now 🙇 cc @aforcier

@aforcier aforcier changed the base branch from issue/153-textview-fontsize-cleanup to feature/adapt-gesture-listeners-fontsize November 27, 2019 14:57
@aforcier aforcier self-assigned this Nov 27, 2019
@mzorz mzorz changed the title Detecting rotation gesture Detecting rotation gesture (AutoResizeTextView-based scaling refactor part 2) Nov 29, 2019
@mzorz mzorz changed the title Detecting rotation gesture (AutoResizeTextView-based scaling refactor part 2) [DO NOT MERGE] Detecting rotation gesture (AutoResizeTextView-based scaling refactor part 2) Dec 2, 2019
@mzorz mzorz closed this Dec 31, 2019
@mzorz mzorz deleted the issue/153-textview-fontsize-cleanup-add-rotation branch July 29, 2020 12:52
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.

2 participants