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

propagating scroll event to perfect scrollabar #132

Open
pavlexander opened this issue Apr 26, 2022 · 0 comments
Open

propagating scroll event to perfect scrollabar #132

pavlexander opened this issue Apr 26, 2022 · 0 comments

Comments

@pavlexander
Copy link

pavlexander commented Apr 26, 2022

Consider a scenario when you have a responsive design, with 3 columns.

On desktop:

  • left menu
  • main column (whole page is scrollable)
  • right menu

On mobile:

  • top menu
  • main column (scrollable)
  • bottom menu

On desktop when scroll event occurs anywhere on the page - it should be possible to scroll the content inside the content column.
On mobile, we scroll the content within the main column itself.

Here is the example: https://jsfiddle.net/sf8m97L2/5/

Video:

rc24.mp4

So here comes my issue/question - is it possible somehow to propagate scroll events from anywhere on the page to the perfect-scrollbar target location (in my case, form body to the content column)?

Currently if the user wants to scroll the content in the main column the user has to hover the mouse over that area specifically. I would like to allow scrolling when the cursor is outside the default zone. Please check the fiddle and the video.

Using latest version 1.5.5

alternatively maybe it's possible to attach the perfect scrollbar to a div that is different from a div where "monitoring" is done? That way I could probably hack my way through this problem. Any advices are welcomed.

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

1 participant