mirror of
https://github.com/FoggedLens/iD.git
synced 2026-02-13 17:23:02 +00:00
Use clientX instead of x, via @porjo
This commit is contained in:
@@ -31,11 +31,11 @@ d3.tail = function() {
|
||||
|
||||
function mousemove() {
|
||||
if (text === false) return;
|
||||
var xoffset = ((d3.event.x + tooltip_size[0] + xmargin) > selection_size[0]) ?
|
||||
var xoffset = ((d3.event.clientX + tooltip_size[0] + xmargin) > selection_size[0]) ?
|
||||
-tooltip_size[0] - xmargin : xmargin;
|
||||
container.style(transformProp, 'translate(' +
|
||||
(~~d3.event.x + xoffset) + 'px,' +
|
||||
~~d3.event.y + 'px)');
|
||||
(~~d3.event.clientX + xoffset) + 'px,' +
|
||||
~~d3.event.clientY + 'px)');
|
||||
}
|
||||
|
||||
function mouseout() {
|
||||
|
||||
Reference in New Issue
Block a user