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

Scrolling using mouse wheel only works in the non frozen section of the grid #47

Open
alexeib opened this issue May 16, 2013 · 3 comments

Comments

@alexeib
Copy link

alexeib commented May 16, 2013

Scrolling using mouse wheel only works in the non frozen section of the grid

@alexeib
Copy link
Author

alexeib commented May 16, 2013

Note that this only happens when you set columns dynamically. Digging into code, it seems that the mousewheel hook is done in finishInitialization() function and has a check on whether there are any frozen columns or not. So if frozen columns are added later (or the option to freeze them is turned on later), mouse wheel on frozen column pane does not work. slick grid should make a check whenever options or columns are changed to see whether mouse scrolling needs to be set up.

@kyrios
Copy link

kyrios commented Aug 6, 2013

It's not working for me even when I'm configuring the frozen columns during initialization of the grid.

Follwup: I forgot loading jquery.mousewheel.js

@schhunchha
Copy link

for me scrolling doesn't work if on frozen columns. I set frozen column option later in the stage after rendering has happened. initial it is always -1.

do we need frozenColumn check for below.
if (jQuery.fn.mousewheel && ( options.frozenColumn > -1 || hasFrozenRows )) { $viewport .bind("mousewheel", handleMouseWheel); }

I removed that frozencolumn condition and works for me. Want to know any implications.

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

3 participants