简体   繁体   English

如何使用鼠标滚动控制fullPage.js垂直滑块?

[英]How to controll fullPage.js vertical slider using mouse scroll?

i am using this plugin http://alvarotrigo.com/fullPage/ and all the sections are working fine but i want that like vertical sliders horizontal sliders should also handle with mouse scroll. 我正在使用此插件http://alvarotrigo.com/fullPage/ ,所有部分都工作正常,但我希望像垂直滑块一样,水平滑块也应使用鼠标滚动来处理。 This is my last day to complete this project. 这是我完成该项目的最后一天。 please tell me how to do this . 请告诉我怎么做。 . ?

Thanks in advance. 提前致谢。

I'd imagine you can attach en event listener to the slider to see if you are mousing over... For example, 我想您可以将事件监听器附加到滑块上,以查看是否将鼠标悬停在...上,例如,

Using jQuery... 使用jQuery ...

$("#slider").mouseenter(function(){
   // halt the fullpage JS and the
})

$("#slider").mouseleave(function(){
   // resume the fullpage JS and the
})

Maybe this will point you in the direction, but is there any documentation regarding adding a slider with fullpage.js? 也许这会为您指明方向,但是是否有任何有关使用fullpage.js添加滑块的文档?

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM