Permalink
Browse files

Pass on objects under pointer for all pointer events

  • Loading branch information...
1 parent 3d88cc3 commit 36ad50423c0a1f80a322d0b9dd578ab7666210f1 @davidaurelio davidaurelio committed Mar 1, 2013
Showing with 2 additions and 2 deletions.
  1. +2 −2 src/renderer/svg/svg_event_handlers.js
@@ -84,7 +84,7 @@ define([
* @param {Array} [objectsUnderPointerIds] An array of element ids under the mouse pointer
*/
function emitMouseEvent(emitter, event, targetId, relatedTargetId, objectsUnderPointerIds) {
- emitter.emit('userevent', event, targetId, relatedTargetId);
+ emitter.emit('userevent', event, targetId, relatedTargetId, objectsUnderPointerIds);
if (!TOUCH_SUPPORT) {
// If we're on a non-touch platform (e.g. regular desktop)
// then fire the mutli: event so we get cross-platform support:
@@ -102,7 +102,7 @@ define([
function emitTouchEvent(emitter, event, targetId, isMultiTouch, objectsUnderPointerIds) {
var type = event.type;
event.type = 'multi:' + type;
- emitter.emit('userevent', event, targetId);
+ emitter.emit('userevent', event, targetId, null, objectsUnderPointerIds);
if (!isMultiTouch) {
emitter.emit('userevent', event.clone(type), targetId, null, objectsUnderPointerIds);
}

0 comments on commit 36ad504

Please sign in to comment.