fake-right-click/editor: fix mouse "context menu > add widget" coordinates in scrolled areas

This commit is contained in:
jean-emmanuel 2016-11-19 16:13:47 +01:00
parent 3d45bd097f
commit f001d46b40

View file

@ -312,6 +312,9 @@
if (e.button==2) {
e.preventDefault()
var off = getOffset(e.target)
e.offsetX = e.pageX-off.left
e.offsetY = e.pageY-off.top
$(e.target).trigger('fake-right-click',e)
}