-
-
Notifications
You must be signed in to change notification settings - Fork 757
Closed
Labels
Milestone
Description
Ebitengine Version
Operating System
- Windows
- macOS
- Linux
- FreeBSD
- OpenBSD
- Android
- iOS
- Nintendo Switch
- PlayStation 5
- Xbox
- Web Browsers
Go Version (go version)
go version go1.26.0 windows/amd64
What steps will reproduce the problem?
- Apply this patch
diff --git a/internal/ui/input_glfw.go b/internal/ui/input_glfw.go
index 9855f3119..64698d739 100644
--- a/internal/ui/input_glfw.go
+++ b/internal/ui/input_glfw.go
@@ -91,6 +91,7 @@ func (u *UserInterface) registerInputCallbacks() error {
// As this function is called from GLFW callbacks, the current thread is main.
u.m.Lock()
defer u.m.Unlock()
+ println(int(100 * yoff))
u.inputState.WheelX += xoff
u.inputState.WheelY += yoff
}); err != nil {- Run
examples/wheel - Scroll Y
What is the expected result?
Printed values are continuous
What happens instead?
Printed values are not continuous
-1
-161
-255
-166
250
-327
-180
-153
-148
-285
-136
-130
-213
-175
250 seems unnatural.
The environment was:
///////////////// ///////////////// hajim@SurfacePro
///////////////// ///////////////// ----------------
///////////////// ///////////////// OS: Windows 11 Pro (25H2) x86_64
///////////////// ///////////////// Host: Surface Pro for Business 11th Edition with Intel (124I:00129T:000M:0000000D:0B:08F:6)
///////////////// ///////////////// Kernel: WIN32_NT 10.0.26200.7623
///////////////// ///////////////// Uptime: 5 days, 23 hours, 50 mins
///////////////// ///////////////// Packages: 5 (scoop)
///////////////// ///////////////// Shell: Windows PowerShell 5.1.26100.7462
Display (SDC41B2): 2880x1920 @ 1.5x in 13", 60 Hz [Built-in]
///////////////// ///////////////// WM: Desktop Window Manager 10.0.26100.7309
///////////////// ///////////////// WM Theme: Custom - Blue (System: Light, Apps: Light)
///////////////// ///////////////// Theme: Fluent
///////////////// ///////////////// Icons: Recycle Bin
///////////////// ///////////////// Font: Yu Gothic UI (12pt) [Caption / Menu / Message / Status]
///////////////// ///////////////// Cursor: Windows 標準 (32px)
///////////////// ///////////////// Terminal: Antigravity 1.107.0.0
///////////////// ///////////////// CPU: Intel(R) Core(TM) Ultra 7 268V (8) @ 5.00 GHz
GPU: Intel(R) Arc(TM) 140V GPU (16GB) (128.00 MiB) [Integrated]
Memory: 23.40 GiB / 31.69 GiB (74%)
Swap: 115.61 MiB / 6.01 GiB (2%)
Disk (C:\): 124.73 GiB / 952.69 GiB (13%) - NTFS
Local IP (Wi-Fi): 192.168.0.17/24
Battery: 100% [AC Connected]
Locale: ja-JP
Anything else you feel useful to add?
No response
Reactions are currently unavailable