Smooth-Div-Scroll icon indicating copy to clipboard operation
Smooth-Div-Scroll copied to clipboard

Responsive/Dynamic width

Open BeatLaG opened this issue 13 years ago • 1 comments

Hi!

I´m working on a responsive/dynamic layout. The wrapper height is set to 100% and this wrapper deppend on a parent that at start fills the 80% of the window height and with some behaviors with JS this height changes on runtime. Then the global heigh changes and I need to pass the new values to the plugin.

How it would be the better way to pass the new height on runtime?

I want to congratulate you for making a clever plugin like this. It is really easy to use and very versatile!

Thanks you very much! :)

BeatLaG avatar Dec 09 '12 11:12 BeatLaG

When I change dynamically the .scrollArea width in order to achieve the new imgs sum width the space updates correctly. But I having a weird issue with the mouse scroll and the scroll using the handlers/arrows.

I have enabled too the touch feature, and it is very weird what is happening. When the wrapper increases, the mouse wheel and handlers can´t scroll to the end of the new width, but if I drag and drop, I can view the complete images list with the new widths.

Why can´t I scroll with the mouse and handlers and the drag and drop option I can?

Thanks!

BeatLaG avatar Dec 09 '12 12:12 BeatLaG