I tried to set up the scrollbar on a full page, but it seems not to work at all.
I explain : my page can be viewed enterily on a 1080p screen, but it need to set a scrollbar for tinier screen.
The thing is that the handle take 100% of the screen (I set it to 50px), no matter the size.
So I think I got a problem with the reload function in addition of the issue of the scrollbar that doesn't scroll
PS: I went through a lot of forums, and the wiki, but I didn't find a solution
I'm using jQuery 1.11
Here is the JS code :
-------------------------
/*global Sly */
var mySlySlider;
$(function () {
'use strict';
var frame = $('#frame');
mySlySlider = new Sly(frame, {
scrollBy: 50,
speed: 50,
easing: 'easeOutQuart',
scrollBar: $('#scrollbar'),
dynamicHandle: 1,
dragHandle: 1,
clickBar: 1,
mouseDragging: 1,
touchDragging: 1,
releaseSwing: 1
}).init();
$(window).on('resize', function () {
frame.sly('reload');
});
});
try mySlySlider.reload();
instead of
frame.sly('reload');
var sly = new Sly(frame, options);
$(frame).sly('method');// won't work
sly.method() // worksbody { padding-top: 70px; min-width:400px;}html, body { height: 100%; overflow: hidden;}