🐞 Fix: Aux. Preview - Touch Event Conflict
This commit is contained in:
parent
4ae666496f
commit
d7643649c3
@ -637,10 +637,16 @@ fileprivate extension RNIContextMenuView {
|
||||
// MARK: Set Layout
|
||||
// ----------------
|
||||
|
||||
// TODO: Remove?
|
||||
/// detach aux. preview
|
||||
previewAuxiliaryViewWrapper.removeFromSuperview();
|
||||
previewAuxiliaryView.removeFromSuperview();
|
||||
|
||||
// Bugfix: Stop bubbling touch events from propagating to parent
|
||||
previewAuxiliaryView.addGestureRecognizer(
|
||||
UITapGestureRecognizer(target: nil, action: nil)
|
||||
);
|
||||
|
||||
/// manually set size of aux. preview
|
||||
previewAuxiliaryViewWrapper
|
||||
.notifyForBoundsChange(size: previewAuxiliaryViewSize);
|
||||
|
||||
Loading…
Reference in New Issue
Block a user