Make WordPress Core

Changes between Initial Version and Version 1 of Ticket #31457, comment 4


Ignore:
Timestamp:
03/03/2015 03:48:06 PM (10 years ago)
Author:
stephdau
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #31457, comment 4

    initial v1  
    66On 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... :(
    77
    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 width is wide enough.
     8We 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.
    99
    1010@azaozz, @michaelarestad: alternative ideas/suggestions?