Commit 2cf9d3c0 authored by Jonathan Wilkes's avatar Jonathan Wilkes

fix regression where "mouse" message could give different coords than "mouseup" in same position

parent 78e6e154
......@@ -71,7 +71,7 @@ var canvas_events = (function() {
return false;
},
mousedown: function(evt) {
// tk events are one greater than html5...
// tk events (and, therefore, Pd evnets) are one greater than html5...
var b = evt.button + 1;
var mod;
// For some reason right-click sends a modifier value of "8",
......@@ -94,8 +94,9 @@ var canvas_events = (function() {
// evt.pageX + " y: " + evt.pageY +
// " button: " + (evt.button + 1));
pdgui.pdsend(name +
" mouseup " + evt.pageX + " " + evt.pageY + " " +
(evt.button + 1));
" mouseup " + (evt.pageX + svg_view.x) + " " +
(evt.pageY + svg_view.y) + " " +
(evt.button + 1));
evt.stopPropagation();
evt.preventDefault();
},
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment