-
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
center zoom around focused point... #277
base: develop
Are you sure you want to change the base?
Conversation
Personally, I find that the original zooming gives better results in most of the cases. Most of the time, the point I'm looking at is more to the top of the screen (somewhere between 1/4 and 1/2 of the screen). So when I zoom out with your changes, The event (and especially it's title) goes off the screen, which seems undesirable to me. Maybe have a focused point that's a bit higher (and maybe customizable?) |
Customizeable would be the 'easiest' solution. Current default is then would be 0% or 0dp |
I feel like percentage is probably a better solution. |
done, i used 2 attributes for this
|
|
allow setting a customizeable focus point (height) to center zoom: - fixedFocusPointFraction: a fraction where to set the specific point in view height - fixedFocusPointEnabled: if disabled the center of the zoom gesture is used
What do you mean by 'not totally clear'? Should i rename them or do you need more description and comments? With fixedFocusPoint i wanted to point out the focused point around we zoom. Edit: while reading this i think the name is not the best. how about fixedZoomOriginEnabled and fixedZoomOriginPos? Any other suggestions? |
The description should be more clear. I'm for example confused by fixedFocusPointFraction and focusPoint. And why there is a need for fixedFocusPointEnabled. And why the description for focusPoint seems to be added next to fixedFocusPointEnabled. I'm guessing you mean:
|
you're guessing right. |
... instead of always keeping top hour while zooming