Changes between Initial Version and Version 1 of Ticket #31457, comment 4
- Timestamp:
- 03/03/2015 03:48:06 PM (10 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Ticket #31457, comment 4
initial v1 6 6 On the other hand, I tried to inspire myself from it, and tried to detect clicks on the body, and their target element. Unfortunately, the issue we're having is that if the user happens to put the cursor inside the TinyMCE content iframe when clicking out of the sidebar, the local body click is not being registered, as it's happening inside that iframe's body instead... :( 7 7 8 We might have to wrap `options-panel` in a wrapper that'd take 100% of the width and height when the sidebar is expanded, and detect clicks on there, with `event.target == self` or not, to slide it back. This would have to only be the case if we're in responsive mode, since the sidebar is fixed if the window widthis wide enough.8 We might have to wrap `options-panel` in a wrapper that'd take 100% of the width and height when the sidebar is expanded, and detect clicks on there, with `event.target == self` or not, to slide it back. This would have to only be the case if we're in responsive mode, since the sidebar is fixed if the window is wide enough. 9 9 10 10 @azaozz, @michaelarestad: alternative ideas/suggestions?