Comments (6)
You will need to provide more details.
First try in to see if it happens official unmodified examples.
from imgui.
I compiled the unmodified opengl3/sdl2 example.
The behaviour is slightly different but still not working as expected.
Here is a video of what it looks like:
https://www.youtube.com/watch?v=dFMub49vs2g
The scrolling down produces some flickering as if it always resets to the top on the next frame.
Scrolling up instead directly jumps to the top.
I don't know if this information helps or what else I can/should provide.
from imgui.
@Thalenberghen since you use SDL2
backend, you can try to add printf(stdout, "wheel x=%f, y=%f\n", wheel_x, wheel_y); fflush(stdout);
to see what wheel x/y offsets passed into Dear ImGui
. Put it before io.AddMouseWheelEvent(wheel_x, wheel_y)
in imgui_impl_sdl2.cpp
here:
imgui/backends/imgui_impl_sdl2.cpp
Lines 321 to 337 in 4bb7567
from imgui.
I have added the line, and interestingly it behaves like my program now, where nothing happens at all.
All the values it prints for wheel x and y are 0 or -0.
Edit:
I checked and the value for the event->wheel_y is showing +-1 as I would expect.
But the precise_y which it seems to pick up is 0 or a gigantic negative number.
from imgui.
Use Demo>Debug Log>IO to visualize data received by dear imgui.
from imgui.
So what's the verdict?
If I uncomment the preciseX/Y stuff and use the standard one everything works.
Should I just do that?
from imgui.
Related Issues (20)
- Color too dark custom checkbox color fill HOT 3
- No horizontal scrollbar in a window when calling SetNextWindowContentSize with size larger than the screen HOT 6
- Plugin architecture in imgui(C++)? HOT 4
- Misbehaving GUI when i through libigl to use imgui HOT 2
- DXGI warning with DX11 backend about `DXGI_SWAP_EFFECT_DISCARD` HOT 9
- Transparent issue HOT 3
- ImGui Dockspace not working when viewports are enabled HOT 11
- Tabbar containing dockspace HOT 8
- How to dock a window to the size programmatically wthout taking the whole space HOT 3
- Memory leak when rendering with DX11 in C++ HOT 15
- How to display the same texture with different scale modes? HOT 1
- Shortcut routing for an active item HOT 16
- How to hide border from dockspace ?
- altas is null when use llvm HOT 2
- Extend button hitbox HOT 3
- Can InvisibleButton allow size 0? HOT 3
- Slider automatically setting to random large value on load HOT 2
- How to programmatically trigger Table column sorting? HOT 2
- DX12 example exception HOT 1
- Possible bug in TabBarGetCurrentTab HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from imgui.