mirror of
https://github.com/cappuccino/cappuccino.git
synced 2026-11-27 00:45:52 +00:00
Stop propagation for all events, not just single finger ones.
This commit is contained in:
1 parent
b1fc23af08
commit
1c79db2303
1 file changed
+8
-6
@@ -911,19 +911,21 @@ var CTRL_KEY_CODE = 17;
|
||||
newEvent.stopPropagation = function(){if(aDOMEvent.stopPropagation) aDOMEvent.stopPropagation()};
|
||||
|
||||
[self _bridgeMouseEvent:newEvent];
|
||||
|
||||
/*if (aDOMEvent.preventDefault)
|
||||
|
||||
return;
|
||||
}
|
||||
else
|
||||
{
|
||||
if (aDOMEvent.preventDefault)
|
||||
aDOMEvent.preventDefault();
|
||||
|
||||
if (aDOMEvent.stopPropagation)
|
||||
aDOMEvent.stopPropagation();*/
|
||||
|
||||
return;
|
||||
aDOMEvent.stopPropagation();
|
||||
}
|
||||
}
|
||||
catch(e)
|
||||
{
|
||||
alert(e);
|
||||
objj_exception_report(e, {path:@"CPDOMWindowBridge.j"});
|
||||
}
|
||||
|
||||
// handle touch cases specifically
|
||||
|
||||
Reference in new issue
Block a user