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

Is the panzoom behavior reversed ? #22

Closed
jerishsd opened this issue Jul 5, 2017 · 2 comments
Closed

Is the panzoom behavior reversed ? #22

jerishsd opened this issue Jul 5, 2017 · 2 comments

Comments

@jerishsd
Copy link

jerishsd commented Jul 5, 2017

When pressing the down arrow, graph moves up, up arrow graph moves down.
(External fiddle : http://jsfiddle.net/ajhnmcrb/11/ discussed in cytoscape/cytoscape.js#1322)
Flipped the signs in handle2pan & positionIndicator to fix it. (Code snippets below).
Is this a known issue ?

        var vnorm = {
          x: +1 * v.x * (percent * options.panDistance),
          y: +1 * v.y * (percent * options.panDistance)
        };

        var vnorm = {
          x: +1 * v.x/d,
          y: +1 * v.y/d
        };
@maxkfranz
Copy link
Member

No, it's correct. Users click up when they want to see content that's hidden upwards. It's the same as map apps, like Google Maps or Bing Maps. It's what old fashioned users expect, because it's the most common convention for those widgets. The only reason to use an extension like this is to cater to old fashioned users anyway, as users by and large prefer to just use faster and more natural built-in gestures. Even Google maps and Bing maps don't include panzoom controls anymore.

@jerishsd
Copy link
Author

jerishsd commented Jul 5, 2017

Thanks much Max for the quick response, and the background :)
Makes sense :)
Checked out mapquest and the behavior is the same,
https://www.mapquest.com/directions

@jerishsd jerishsd closed this as completed Jul 5, 2017
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