Change div position when near screen border
Closed this issue · 2 comments
mdolr commented
Sometimes the div goes out of the screen because the a href is on the bottom or far right of the page.
In this case switch the div above the cursor instead of below or on the left of the cursor instead of the right
david-webber commented
Can I take a look at this one? I might not be able to do it until tomorrow though.
mdolr commented
It's fine don't worry.
Everything related to the div position is in js/core.js
in insertSurvolDiv
in the mousemove
event, you might want to play with the offsets I guess