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

bind-input example weirdness #392

Closed
elemoine opened this issue Mar 18, 2013 · 3 comments
Closed

bind-input example weirdness #392

elemoine opened this issue Mar 18, 2013 · 3 comments

Comments

@elemoine
Copy link
Member

http://openlayers.github.com/ol3/master/examples/bind-input.html

When rotating the map using Alt-Shift drag the rotation slider doesn't update as expected.

@twpayne
Copy link
Contributor

twpayne commented Mar 18, 2013

I think the problem is that rotations outside the range 0..2π are not handled correctly: they are valid rotations but out of the range of the slider. To reproduce: from a reload, rotate clockwise to see the slider move, rotate anti-clockwise to see the slide clamp to zero (negative rotation).

Tested on Chrome, Firefox, and Safari on Mac OS X.

@twpayne
Copy link
Contributor

twpayne commented Mar 18, 2013

Suggested workaround: configure the slider to use the range -2π..2π. This means that the slider will be in the center when there is no rotation and can cope with a full turn in either direction.

@twpayne
Copy link
Contributor

twpayne commented Mar 18, 2013

Fixed by @tschaub in 4cec054 (direct merge to master).

@twpayne twpayne closed this as completed Mar 18, 2013
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

No branches or pull requests

2 participants