jquery.minimap icon indicating copy to clipboard operation
jquery.minimap copied to clipboard

Minimap with own overflow

Open ghost opened this issue 10 years ago • 1 comments

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

ghost avatar Mar 07 '14 21:03 ghost

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.

goldenapples avatar Mar 07 '14 22:03 goldenapples