3 ms·
As someone who doesn't use webviews, why is this such a necessary feature?
by peter_l_downs 2y ago
As someone who doesn't use webviews, why is this such a necessary feature?
- afavour 2y agoI imagine the OP is layering views on top of each other and wants them to all respond to clicks. I could imagine a sticky “please log in” banner at the top of a view, something like that.
- aragonite 2y agoI wouldn't say it's a necessary feature, but it's particularly important for frameless & partially transparent apps with irregularly shaped UI components that interact with the mouse (see example here [1]; need to click the play button). Having an invisible rectangle around the component where mouse clicks mysteriously disappear can feel inelegant. This feature is also especially important for my own use case where I'm trying to make an app where the UI is essentially a "frame" around the screen, rather than a traditional window. It's much easier (& surprisingly efficient via the IE browser control) to simply use a single webview the size of the entire screen, render in the border regions and let mouse events fall through the transparent pixels. [1] https://github.com/electron/electron/issues/1335#issuecomment-1627768438 https://github.com/electron/electron/issues/1335#issuecommen... Edit: fixed the link
- peter_l_downs 2y agoMakes sense, thank you! EDIT: degenerate example, but still a good explanation.