Slidebars icon indicating copy to clipboard operation
Slidebars copied to clipboard

Fix CSS for mobile browsers and various html/body targeting libraries

Open JoryHogeveen opened this issue 7 years ago • 3 comments

Fixes: #251 Related: #292

Todo

  • [ ] Check animations (shift and reveal don't work correctly for top and bottom because z-index: 0;)
  • [ ] Check other options (example: disable site scrolling is not working with this fix when hovering over the sidebar)

JoryHogeveen avatar Sep 29 '16 13:09 JoryHogeveen

👍

philippfrenzel avatar Mar 18 '17 20:03 philippfrenzel

Thanks. This solved my issue #277

EDIT: Looks like it breaks smoothscroll to #anchors

    $( 'a[href^="#"]' ).on( 'click', function( event ) {
      event.preventDefault();

      var target = $( this ).attr( 'href' );

      $( '[canvas="container"]' ).animate( {
        scrollTop: $(target).offset().top,
      },
      700 );
    });

EDIT2: Looks like a more traditional smooth scroll approach works. :)

NoLooseEnds avatar Sep 27 '17 10:09 NoLooseEnds

@NoLooseEnds Yep this was meant for enable "normal" smooth scroll scripts again as well. :)

JoryHogeveen avatar Sep 27 '17 22:09 JoryHogeveen