You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Scenario:
There are 2 (or more) View3D, sharing the same context / stage3dproxy, not overlapping.
I have custom mouse event listeners in each view.
If i click in the latest view, and don't hit any object, the mouse event triggered in the latest view will dispatch the event in all previous views.
This happens because there is an "unrestricted" view3d loop in Mouse3DManager.reThrowEvent():
private function reThrowEvent(event:MouseEvent):void
{
if (!_activeView || (_activeView && !_activeView.shareContext))
return;
for (var v:* in _view3Ds) {
if (v != _activeView && _view3Ds[v] < _view3Ds[_activeView]) // <-- *** HERE ***
v.dispatchEvent(event);
}
}
The dispatch condition should "rethrow" the event only when the event happens within the related view area and only when its visible or in the stage.
Verified in the stable v4.1.6 and master branch.
This bug probably happens with touch events too. Doesn't happen with touches.
The text was updated successfully, but these errors were encountered:
Scenario:
There are 2 (or more) View3D, sharing the same context / stage3dproxy, not overlapping.
I have custom mouse event listeners in each view.
If i click in the latest view, and don't hit any object, the mouse event triggered in the latest view will dispatch the event in all previous views.
This happens because there is an "unrestricted" view3d loop in Mouse3DManager.reThrowEvent():
The dispatch condition should "rethrow" the event only when the event happens within the related view area and only when its visible or in the stage.
Verified in the stable v4.1.6 and master branch.
This bug probably happens with touch events too.Doesn't happen with touches.The text was updated successfully, but these errors were encountered: