Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 4 of 4
  1. #1
    Regular Coder StealthRT's Avatar
    Join Date
    Aug 2006
    Posts
    187
    Thanks
    14
    Thanked 0 Times in 0 Posts

    Question Jquery facebook like slide panel scroll issues

    Hey all i am using code from http://takien.github.io/jPushMenu/

    It works good BUT once the menu is slid out and i scroll all the way down to the bottom-and keep scrolling it actually starts to scroll the main page.

    I have set up a preview in jsfiddle of this to better grasp what i am talking about.

    http://jsfiddle.net/WeDbS/

    I have already tried:
    Code:
        $(".container").attr('disabled',true);
    But that does not seem to disable it from scrolling...

    I found some [jquery code that disables scrolling (http://stackoverflow.com/questions/3...ng-with-jquery) for the whole page but that wont work since i need to be able to scroll in the menu panel.

    I am using this for a mobile app using Phonegap and Jquery Mobile. And yes, i do know that Jquery mobile has a "slide panel" but it doesn't work well.

    What would i be missing?

  • #2
    Senior Coder DanInMa's Avatar
    Join Date
    Nov 2010
    Location
    Salem,Ma
    Posts
    1,577
    Thanks
    13
    Thanked 248 Times in 248 Posts
    stolen from http://stackoverflow.com/questions/6...ut-moving-page

    Code:
                $('.cbp-spmenu-left').bind('mousewheel', function(e){
    
        $(this).scrollTop($(this).scrollTop()-e.originalEvent.wheelDeltaY);
    see here http://jsfiddle.net/WeDbS/1/

    works in the fiddle at least.

  • #3
    Regular Coder StealthRT's Avatar
    Join Date
    Aug 2006
    Posts
    187
    Thanks
    14
    Thanked 0 Times in 0 Posts
    Sorry DanInMa, that did not work.

  • #4
    Senior Coder DanInMa's Avatar
    Join Date
    Nov 2010
    Location
    Salem,Ma
    Posts
    1,577
    Thanks
    13
    Thanked 248 Times in 248 Posts
    odd. works in chrome for me.


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •