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

Question: Is there an option for momentum scrolling? #2

Closed
shujaatak opened this issue Mar 16, 2025 · 8 comments
Closed

Question: Is there an option for momentum scrolling? #2

shujaatak opened this issue Mar 16, 2025 · 8 comments

Comments

@shujaatak
Copy link

Currently, it takes time to scroll the chart left and right quickly.

@cjjapan
Copy link
Owner

cjjapan commented Mar 16, 2025

@shujaatak
no such option currently.

cjjapan added a commit that referenced this issue Mar 20, 2025
cjjapan added a commit that referenced this issue Mar 20, 2025
cjjapan added a commit that referenced this issue Mar 20, 2025
@cjjapan
Copy link
Owner

cjjapan commented Mar 20, 2025

@shujaatak
feature added. check updated version 0.1.2

@shujaatak
Copy link
Author

@cjjapan
Nice! The momentum scrolling feels great. Although everyone’s preferences differ, some might want the option to disable it. If that’s available, it’d be awesome!

@cjjapan
Copy link
Owner

cjjapan commented Mar 21, 2025

@shujaatak

some might want the option to disable it

you can change GChart.pointerScrollMode. see updated Panels demo page

/// Action mode for pointer scroll event (mouse wheel scrolling).
enum GPointerScrollMode {
  /// no action
  none,

  /// zoom the point viewport
  zoom,

  /// move the point viewport
  move,
}

@shujaatak
Copy link
Author

@cjjapan

Absolutely thrilled! 🎉 The addition of pointerScrollMode is fantastic—it makes a huge difference! I especially love pointerScrollMode = move; it feels so smooth and intuitive. Huge thanks for implementing this! Huge appreciation for your effort! 🚀🔥

@cjjapan
Copy link
Owner

cjjapan commented Mar 21, 2025

Ah you mean disable momentum scrolling. not possible now. will add

@cjjapan
Copy link
Owner

cjjapan commented Mar 21, 2025

      GPanel(
        momentumScrollSpeed: 0,  // A value between 0 and 1.0, larger value means faster scrolling, 0 to disable.
        ...
       )

@shujaatak
Copy link
Author

@cjjapan

Fantastic! 🎉 Thanks a lot for adding the option to disable momentum scrolling—it’s really thoughtful to accommodate different preferences. Huge appreciation for your responsiveness and effort! 🙌

@cjjapan cjjapan closed this as completed Mar 22, 2025
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