jquery.minimap
jquery.minimap copied to clipboard
Minimap with own overflow
I have setup jsFiddle to show the problem. it was really hard to setup the problem which I currently have but this will do I guess.
http://jsfiddle.net/X3Ej8/9/embedded/result/
This problem also relates to one currently open, so I included Toggle
button to activate minimap (press twice)
So minimap currently scrolls when it detects window. Can we listen scroll
event we are currently attached to (if it has its own overflow) .. maybe there can be a option to do so
Ah, that's a good idea. Rather than always listening to $(window).scroll
, there should be an option to pass in a specific DOM element to listen to scroll on, and calculate offset based on. I'll test it out a bit and see if that introduces any surprising behavior, and if it works OK, I'll add that option.