Skip to content

Commit

Permalink
[plugin:attach] fix drop area position when page scrolling
Browse files Browse the repository at this point in the history
  • Loading branch information
nao-pon committed Feb 28, 2013
1 parent 6b06b7e commit a367533
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion xoops_trust_path/modules/xpwiki/plugin/attach.inc.php
Expand Up @@ -1214,7 +1214,7 @@ function (){
if (dropArea.style.display != 'none') dropArea.style.display = 'none'; if (dropArea.style.display != 'none') dropArea.style.display = 'none';
}); });
qq.attach(document, 'dragover', function(e){ qq.attach(document, 'dragover', function(e){
dropArea.style.top = Math.max(0, Event.pointerY(e) - dropArea.getHeight() / 2) + 'px'; dropArea.style.top = Math.max(0, Event.pointerY(e) - (window.scrollY || window.pageYOffset) - dropArea.getHeight() / 2) + 'px';
listArea.style.top = dropArea.style.top; listArea.style.top = dropArea.style.top;
}); });
var imgPrefetch = new Image(); var imgPrefetch = new Image();
Expand Down

0 comments on commit a367533

Please sign in to comment.