Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- if(ev.clientY < ($(window).height() - 330) && ev.clientX < ($(window).width() - 220)) {
- $activeDiv.css({
- 'top': ev.clientY + 10,
- 'left': ev.clientX + 10
- });
- }
- else {
- if(ev.clientY > ($(window).height() - 330)) {
- $activeDiv.css({
- 'top': ev.clientY - 310
- });
- }
- if(ev.clientX > ($(window).width() - 220)) {
- $activeDiv.css({
- 'top': ev.clientX - 230
- });
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement