Repository navigation
Commit c7391e8
authored
[contrib.glfw3] New version (new extension function) (#28096)
Here are the release notes:
- Implemented
[GH#32](pongasoft/emscripten-glfw#32)
- Added a way to disable autofocus on mouse down
(`emscripten::glfw3::SetFocusOnMouseDown` extension function)
Background (new in 3.5.1.20261028):
Traditionally, on the desktop, the window manager assigns the focus to
the window when the mouse is clicked
within its boundaries. This implementation, by default, replicates this
behavior by automatically focusing the
window (= canvas) when the mouse is clicked (as well as when a touch
event is received) within its boundaries.
You can disable this autofocus behavior by calling:
```cpp
auto window = glfwCreateWindow(...);
emscripten::glfw3::SetFocusOnMouseDown(window, false);
```1 parent da7002f commit c7391e8
1 file changed
Lines changed: 2 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3 | 3 | | |
4 | 4 | | |
5 | 5 | | |
6 | | - | |
| 6 | + | |
7 | 7 | | |
8 | 8 | | |
9 | | - | |
| 9 | + | |
10 | 10 | | |
11 | 11 | | |
12 | 12 | | |
| |||
0 commit comments