diff --git a/examples/dragndrop/dragndrop.js b/examples/dragndrop/dragndrop.js index bb8bed1a8..d3dab16e6 100644 --- a/examples/dragndrop/dragndrop.js +++ b/examples/dragndrop/dragndrop.js @@ -4,8 +4,8 @@ var dragTarget = document.getElementById('dragTarget'); // Get the three major events - var mouseup = Rx.Observable.fromEvent(dragTarget, 'mouseup'); - var mousemove = Rx.Observable.fromEvent(document, 'mousemove'); + var mouseup = Rx.Observable.fromEvent(document, 'mouseup'); + var mousemove = Rx.Observable.fromEvent(document, 'mousemove'); var mousedown = Rx.Observable.fromEvent(dragTarget, 'mousedown'); var mousedrag = mousedown.flatMap(function (md) {