igorlino / elevatezoom-plus

Enhanced elevateZoom - A jQuery image zoom plugin
http://igorlino.github.io/elevatezoom-plus/
MIT License
162 stars 77 forks source link

Adjusting window position regardless of relation with original image #91

Open cAstraea opened 6 years ago

cAstraea commented 6 years ago

I'm looking to have the zoomWindow positioned square in the middle of the page and full window height regardless of the position of the original image but can't seem to figure out how to adjust it. In the source it adjusts itself based on those 16 positions with self.zoomWindow.css({ top: self.windowOffsetTop});

igorlino commented 6 years ago

Have you tried the from the demo 'Position 1: Default' ?

http://igorlino.github.io/elevatezoom-plus/examples.htm

cAstraea commented 6 years ago

Hello. Yes what I meant was for the window to track the top part of the screen. Amazon has the same problem as can be seen here http://recordit.co/24f1iBeAVN So when I'm hovering over the image the preview will always be x pixels away from the visible top with no relation to anything else. I added a position fixed on the zoomWindowContainer div .zoomWindowContainer { position: fixed; top: 1%; }