Skip to content

Scroll Isolation #95

@faeb187

Description

@faeb187

Feedback Seems nice! I give it a try!

Feature Request Wouldn't it be perfect if we could set that param which won't allow scroll bubbling? (e.g. Facebook where the chat window must be scrollable without the whole site is scrolling away when reached the bottom of the chat window)

#prevent scroll bubbling on .scroll-isolated
#using 'jquery-mousewheel' (git repository)
$( ".scroll-isolated" ).each ->
    $( @ ).on "mousewheel", ( e, dlta ) ->
        st = $( @ ).scrollTop()
        if ( !st and dlta > 0 ) or st is ( @scrollHeight - $( @ ).height() ) and dlta < 0 then e.preventDefault()

Update Switched to jquery.nicescroll !! Great plugin, no css file needed and scroll isolation implemented (nativeparentscrolling: !1)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions