zooniverse / planktonportal

3 stars 1 forks source link

Images jump to fit the screen while placing a mark during the classification #67

Closed yshish closed 9 years ago

yshish commented 9 years ago

After scrolling down the Classification page, when the top part of the image is out of the screen, it jumps itself at the moment when I click to classify a plankter so the mark gets placed on a wrong place. It doesn't happen when the image is too low (=you don't see the bottom part). I guess It cannot be reproduced on big screens:) My laptop screen is so small that I always have to scroll down under the top menu to see the whole image (unless I want to zoom the image out to less than 100%). I don't mind to scrolling down, I just don't like that it jumps back to fit the screen at the moment I click in it. If I could move the mark after placing, it won't be so annoying as it is now.

eatyourgreens commented 9 years ago

I've just had this happen to me in Firefox, with the browser zoomed in a bit, so that the image is slightly larger than the browser viewport. Scroll down, click to mark near the bottom, the image scrolls down and the mark appears above the point you actually clicked.

Could this be caused by keyboard focus shifting to the marking surface on mouse click, thus causing the browser to scroll the focussed element into view? There's a known bug in Webkit where keyboard focus doesn't necessarily change on mouse click, which would explain this showing up in Firefox but not Chrome/Safari.

yshish commented 9 years ago

I'm afraid it hasn't been fixed yet. I've just tried it and when I scroll down and click to place the mark, it jumps up from there so the mark appears far above....

srallen commented 9 years ago

@yshish, I was still deploying to production as of a few seconds ago. Please give it another try. Thanks!

yshish commented 9 years ago

Well, it is working now!! Awesome :) Thank you very much, Sarah!