0

I'm creating a scrolling date picker. but when I want to scroll the div in which the date picker is, body(window) will scroll with it too, so how can I prevent body(window) from scrolling and only let the scroll happen in the aforementioned div. I know overflow: hidden will do the trick but it will flash in and flash out every time disabled or enabled.

mhd nickz
  • 1
  • 2
  • Welcome to Stack Overflow! Visit the [help], take the [tour] to see what and [ask]. Please first ***>>>[Search for related topics on SO](https://www.google.com/search?q=javascript+on+scrollwheel+stop+body+site%3Astackoverflow.com)<<]`](https://meta.stackoverflow.com/questions/358992/ive-been-told-to-create-a-runnable-example-with-stack-snippets-how-do-i-do) snippet editor. – mplungjan Nov 02 '21 at 11:58

0 Answers0