-
-
Notifications
You must be signed in to change notification settings - Fork 120
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
Mousewheel event in row detail #618
Comments
That is most probably an issue in the core lib 6pac/SlickGrid which will have to addressed in that fork not in Angular-Slickgrid. You should try to see if you can replicate the issue in the core lib Example - Row Detail, if it's reproducible there then it's in the core lib, if not then it might be in Angular-Slickgrid (but I doubt it) |
I seriously have no time to look into this, so I would require your help in troubleshooting the issue. It might be something in the CSS styling (SASS in Angular-Slickgrid). |
The main difference against the core lib is that I created my own SASS styling in Angular-Slickgrid, sometime it's not fully in sync with the core lib on the styling side. You can see the full styling on this line of I would think the issue is possibly in the SASS |
Thanks, let me dig into it. |
Also, wanted to know if this is any other scroll plugin in the detail view? Because the outside scroll looks like a browser scroll and the internal one looks like some another. In the core lib, it seems that both scroll bars are browsers. |
I don't know why that is different, but again I think it might be CSS styling but I don't know more than that. I already gave you the 2 files to look into the SASS file or the |
I strongly believe it's CSS and so I changed the Angular-Slickgrid - Row Detail demo to have the scroll and posted a question on Stack Overflow here, you can refer to that SO and maybe upvote the question. Hopefully someone can answer just by looking at the live demo. |
Thanks a lot. Though I commented on different parts of the CSS and tested, none changed the issue. I also tried overriding that mouse wheel event listener, that didn't work too |
- when jQuery mousewheel is imported, SlickGrid attaches a scroll handler which prevent scrolling to work as normal, this however should only be used with frozen grids since it creates other issues like seen in Row Detail were it doesn't behave correctly - NOTE that this is more of a patch and a SlickGrid grid option flag would be better to handle that, possibly create a flag in future SlickGrid version
- when jQuery mousewheel is imported, SlickGrid attaches a scroll handler which prevent scrolling to work as normal, this however should only be used with frozen grids since it creates other issues like seen in Row Detail were it doesn't behave correctly - NOTE that this is more of a patch and a SlickGrid grid option flag would be better to handle that, possibly create a flag in future SlickGrid version - ref Angular-Slickgrid issue [#618](ghiscoding/Angular-Slickgrid#618)
- when jQuery mousewheel is imported, SlickGrid attaches a scroll handler which prevent scrolling to work as normal, this however should only be used with frozen grids since it creates other issues like seen in Row Detail were it doesn't behave correctly - NOTE that this is more of a patch and a SlickGrid grid option flag would be better to handle that, possibly create a flag in future SlickGrid version - ref Angular-Slickgrid issue [#618](ghiscoding/Angular-Slickgrid#618)
#619) * fix(extensions): import jQuery mousewheel only with frozen, fixes #618 - when jQuery mousewheel is imported, SlickGrid attaches a scroll handler which prevent scrolling to work as normal, this however should only be used with frozen grids since it creates other issues like seen in Row Detail were it doesn't behave correctly - NOTE that this is more of a patch and a SlickGrid grid option flag would be better to handle that, possibly create a flag in future SlickGrid version
Pushed a patch for this under the new release v.2.23.x. I say it's a patch since a better implementation would be to add a new flag in SlickGrid (core) to disable the mousewheel scroll handler (which is what causes this issue and was answered in the SO question), right now I'm only importing the So anyway, the patch is available under the new release v.2.23.x If you like the lib and haven't already upvoted, please do so ⭐ |
- when using TypeScript, we must always import the mousewheel jquery lib even if we don't need it because TypeScript does not yet support dynamic import. So providing a grid option to only use the mousewheel handler when we really want it is the only bulletproof way to only use that handler only when we really need it (typically when using a frozen grid) - ref Angular-Slickgrid [issue](ghiscoding/Angular-Slickgrid#618)
…555) * feat: add enableMouseWheelScrollHandler option to allow dynamic load - when using TypeScript, we must always import the mousewheel jquery lib even if we don't need it because TypeScript does not yet support dynamic import. So providing a grid option to only use the mousewheel handler when we really want it is the only bulletproof way to only use that handler only when we really need it (typically when using a frozen grid) - ref Angular-Slickgrid [issue](ghiscoding/Angular-Slickgrid#618) * refactor: dynamically add mousewheel scrolling handler on setOptions
There is now a new grid option flag called Cheers ⭐ |
General Topic
Your Environment
Context or Topic
Hi Author,
Thanks for making such a great library :). I am reporting the issue for the row detail feature in your library. I am unable to scroll row detail div through the mouse wheel. Once scrolled down(dragging with the pointer), it moves up with the mouse wheel but never down.
I am not sure if you have a solution for this or even this issue is any priority for you but I have tried everything and unable to get hold of this. If you have any workaround, it will be a big help.
The last option is that I apply a third party jquery plugin on the row detail div.
PS: Reproducible in the library itself
Steps to reproduce :
Expected Behavior
When the pointer is in the row detail area, the mouse wheel should scroll the row detail div rather than the table div
Current Behavior
Possible Solution
What I realized that when I inspect and remove the last 2 mouse wheel slick grid events, it starts working as expected. Maybe these 2 events are preventing the inside mouse wheel event
The text was updated successfully, but these errors were encountered: