on master help sign in
Fix #748, properly detect mouse up events
68a2cedEvan Czaplicki
libraries/Native/Signal/Touch.js+1−1
@@ -107,7 +107,7 @@ Elm.Native.Touch.make = function(elm) {
107 root.value.push(touch(e));
107 root.value.push(touch(e));
108 elm.notify(root.id, root.value);
108 elm.notify(root.id, root.value);
109 });
109 });
110− elm.addListener([root.id], node, "mouseup", function up(e) {
110+ elm.addListener([root.id], document, "mouseup", function up(e) {
111 node.removeEventListener("mousemove", move);
111 node.removeEventListener("mousemove", move);
112 e.identifier = mouseID;
112 e.identifier = mouseID;
113 end(e);
113 end(e);