4 ms·
So ctrl/CMD left/right to move your window to one half of the screen might block you!? XD
by arbol 4y ago
So ctrl/CMD left/right to move your window to one half of the screen might block you!? XD
- birdman3131 4y agoPeople elsewhere in the thread seemed to imply that if Viewport size != window size dev tools is likely opened.
- zamadatix 4y agoThat would create far too many false positives. The common way is to detect if window.innerWidth changed by a minimum threshold but window.outerWidth did not. The limitations of the method are built in sidebars (such as on Edge with the sidebar and search sidebar) could trigger it as well if your minimum width is not wide enough while on the other hand if your minimum width is too wide you won't catch the dev tools opening. The method is also limited in that undocked dev tools will not register a triggering change.