Skip to content

Expose the wheel zoom speed in Python #3125

Description

@liuyxpp

The sensitivity of the wheel zoom cannot be configured on the Python side. However, there is a speed property which can be set on the JS side. It would be better to expose this property to the Python side too.

Activity

  1. birdsarah commented on Nov 15, 2015

    @birdsarah
    Member

    @liuyxpp we are actually in the middle of a big clean-up to ensure that the properties on the python and JS side match each other.

    @havocp WheelZoomTool has a default for speed on the JS side (https://github.com/bokeh/bokeh/blob/master/bokehjs/src/coffee/tool/gestures/wheel_zoom_tool.coffee#L119) but not a python property.

    However running the test in #3099 doesn't pick up this discrepancy. Thoughts?

  2. birdsarah commented on Nov 15, 2015

    @birdsarah
    Member

    Maybe the test only picks up differences in defaults not when there's missing properties?

  3. birdsarah commented on Nov 15, 2015

    @birdsarah
    Member

    great spot @bryevdv, do you know why that would be?

  4. bryevdv commented on Nov 15, 2015

    @bryevdv
    Member

    Why that line exists? @Havoc added that to get things working at all. Currently the client models add all kind of new attributes with abandon and most of them should not get serialized back to the server. But a few like this one should be, but were just overlooked. We should have been more careful in the first place and made client only "viewmodel" objects to store any new, extra, "not intended to be serialized" data, and and kept the main models pure and 1-1 in sync with Python (no extra attrs added). We still should do this some day.

    On Nov 15, 2015, at 00:16, Sarah Bird notifications@github.com wrote:

    great spot @bryevdv, do you know why that would be?

    —
    Reply to this email directly or view it on GitHub.

  5. havocp commented on Nov 15, 2015

    @havocp
    Contributor

    Python would raise an exception at one point if it saw an unknown property... now it just warns. So I was having to mark tons of props as nonserializable. It sounds like the better fix here was to simply add the prop to Python.

  6. birdsarah commented on Nov 17, 2015

    @birdsarah
    Member

    thanks for the background @havocp and @bryevdv still learning how the all the pieces of the properties mechanism works.

  7. bryevdv commented on Apr 2, 2016

    @bryevdv
    Member

    We can certainly expose the speed, but unless we can also find a way to make a given speed somewhat uniform across browsers I am dubious of the utility. But changing to feature in any case.

  8. added this to the milestone on Apr 2, 2016
  9. damianavila commented on Jul 19, 2016

    @damianavila
    Contributor

    Reopening because the PR was reverted by #4831

  10. modified the milestones: , , 0.12.16 on Mar 16, 2018
  11. added a commit that references this issue on Apr 4, 2018
    3c34a7f
  12. added a commit that references this issue on Apr 4, 2018
    6333ee6
  13. github-actions commented on Oct 28, 2024

    @github-actions

    This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

  14. locked as resolved and limited conversation to collaborators on Oct 28, 2024
  15. added theissue type on Jul 22, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions