Title: Script for WordPress not fluid
Last modified: July 21, 2021

---

# Script for WordPress not fluid

 *  [cvi94](https://wordpress.org/support/users/cvi94/)
 * (@cvi94)
 * [4 years, 10 months ago](https://wordpress.org/support/topic/script-for-wordpress-not-fluid/)
 * Hi,
 * I use the script for WordPress in this page ([http://manos.malihu.gr/page-scroll-to-id-with-mousewheel-and-keyboard/#v2-wp](http://manos.malihu.gr/page-scroll-to-id-with-mousewheel-and-keyboard/#v2-wp))
   for scroll to ID by mousewheel but the scroll is not fluid. When I use the mousewheel
   before the scroll ended the page have a problem. Can I block the mousewheel when
   the page is scrolling like this page: [http://manos.malihu.gr/repository/page-scroll-to-id/demo/ps2id-mousewheel-keyboard-example.html](http://manos.malihu.gr/repository/page-scroll-to-id/demo/ps2id-mousewheel-keyboard-example.html)?
   
   Thank you for your help!
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fscript-for-wordpress-not-fluid%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

Viewing 9 replies - 1 through 9 (of 9 total)

 *  Plugin Author [malihu](https://wordpress.org/support/users/malihu/)
 * (@malihu)
 * [4 years, 10 months ago](https://wordpress.org/support/topic/script-for-wordpress-not-fluid/#post-14689203)
 * Hello,
 * You should make your sections height the same height as the viewport. Otherwise,
   how would a user see the rest of the section’s content (i.e. the content below
   the viewport)?
 *  Thread Starter [cvi94](https://wordpress.org/support/users/cvi94/)
 * (@cvi94)
 * [4 years, 10 months ago](https://wordpress.org/support/topic/script-for-wordpress-not-fluid/#post-14690906)
 * Hello,
 * thank you for your answer! The first three sections have the same height as the
   viewport and the problem persist.
    If I delete the blog sections the problemi
   is the same. Is possible block the mousewheel when the page is scrolling?`
 *  Plugin Author [malihu](https://wordpress.org/support/users/malihu/)
 * (@malihu)
 * [4 years, 10 months ago](https://wordpress.org/support/topic/script-for-wordpress-not-fluid/#post-14692798)
 * If you don’t mind having sections that are not the same height as the viewport
   or not having sections outside the mouse-wheel scrolling functionality, you can
   try this:
 * In the custom mouse-wheel script, find the code:
 *     ```
       if(!mPS2idExt.needScroll((mPS2idData.layout==="horizontal" ? e.deltaX : e.deltaY))){ //check if normal scrolling is needed to reach adjacent targets
                       if($(mPS2idExt.selector).length) e.preventDefault();
                       doc.trigger("ps2id-scrollSection",((e.detail<0 || e.wheelDelta>0 || e.deltaY < 0 || e.deltaX < 0) ? 1 : -1));
                     }
       ```
   
 * and change it to:
 *     ```
       //if(!mPS2idExt.needScroll((mPS2idData.layout==="horizontal" ? e.deltaX : e.deltaY))){ //check if normal scrolling is needed to reach adjacent targets
                       if($(mPS2idExt.selector).length) e.preventDefault();
                       doc.trigger("ps2id-scrollSection",((e.detail<0 || e.wheelDelta>0 || e.deltaY < 0 || e.deltaX < 0) ? 1 : -1));
                     //}
       ```
   
 *  Thread Starter [cvi94](https://wordpress.org/support/users/cvi94/)
 * (@cvi94)
 * [4 years, 10 months ago](https://wordpress.org/support/topic/script-for-wordpress-not-fluid/#post-14694849)
 * I tried but unfortunatly nothing happened.
    Could you suggest me another sulution?
 *  Plugin Author [malihu](https://wordpress.org/support/users/malihu/)
 * (@malihu)
 * [4 years, 10 months ago](https://wordpress.org/support/topic/script-for-wordpress-not-fluid/#post-14696428)
 * There are 2 instances of the code I posted. There’s another instance near the
   end of the custom script. Change both, test and let me know.
 *  Thread Starter [cvi94](https://wordpress.org/support/users/cvi94/)
 * (@cvi94)
 * [4 years, 10 months ago](https://wordpress.org/support/topic/script-for-wordpress-not-fluid/#post-14696567)
 * Is better then before but unfortunately the problem persist! Is there something
   else I can do?
 *  Plugin Author [malihu](https://wordpress.org/support/users/malihu/)
 * (@malihu)
 * [4 years, 10 months ago](https://wordpress.org/support/topic/script-for-wordpress-not-fluid/#post-14696576)
 * Can you explain the problem in more detail? Also, what kind of input do you test
   it with (mouse, trackpad)?
 *  Thread Starter [cvi94](https://wordpress.org/support/users/cvi94/)
 * (@cvi94)
 * [4 years, 10 months ago](https://wordpress.org/support/topic/script-for-wordpress-not-fluid/#post-14699082)
 * The input is mouse.
 * I send you this video to explain the problem
    [video src="https://bearinglasses.
   com/wp-content/uploads/2021/07/Sequenza-01.mp4" /] As you can see from the video,
   when I use the mousewheel before the scroll ended the page have a problem.
 *  Plugin Author [malihu](https://wordpress.org/support/users/malihu/)
 * (@malihu)
 * [4 years, 10 months ago](https://wordpress.org/support/topic/script-for-wordpress-not-fluid/#post-14701680)
 * I see. I don’t experience the issue when using Chrome, Firefox etc. I see it 
   only when using specific browsers like Opera. Does it happen in all browsers 
   for you? What browser/OS you test it on?
 * I think the only way to solve this at the moment, is using the older version (
   v1) of the custom script ([see here](https://manos.malihu.gr/page-scroll-to-id-with-mousewheel-and-keyboard/#v1)).
   Can you try it?
 * [https://manos.malihu.gr/page-scroll-to-id-with-mousewheel-and-keyboard/#v1](https://manos.malihu.gr/page-scroll-to-id-with-mousewheel-and-keyboard/#v1)

Viewing 9 replies - 1 through 9 (of 9 total)

The topic ‘Script for WordPress not fluid’ is closed to new replies.

 * ![](https://ps.w.org/page-scroll-to-id/assets/icon-256x256.png?rev=1401043)
 * [Page scroll to id](https://wordpress.org/plugins/page-scroll-to-id/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/page-scroll-to-id/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/page-scroll-to-id/)
 * [Active Topics](https://wordpress.org/support/plugin/page-scroll-to-id/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/page-scroll-to-id/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/page-scroll-to-id/reviews/)

## Tags

 * [scroll](https://wordpress.org/support/topic-tag/scroll/)

 * 9 replies
 * 2 participants
 * Last reply from: [malihu](https://wordpress.org/support/users/malihu/)
 * Last activity: [4 years, 10 months ago](https://wordpress.org/support/topic/script-for-wordpress-not-fluid/#post-14701680)
 * Status: not resolved