View Issue Details
|ID||Project||Category||View Status||Date Submitted||Last Update|
|0001457||NoesisGUI||C# SDK||public||2019-04-27 22:52||2019-08-29 21:54|
|Target Version||2.2.5||Fixed in Version|
|Summary||0001457: Shift + mouse wheel = horizontal scroll|
|Description||Any way to disable this behavior?|
Players are holding Shift very often in our game and it's really confusing to them. And we don't have any horizontally scroll viewers anyway so this feature is useless for us.
|Tags||No tags attached.|
Sorry, there is no way to disable that behavior right now.
Something like a "ShiftWheelScrollsHorizontally" attached property that you could set in a ListBox for example could work for you?
Or maybe, when the shift key is pressed, scroll vertically with the mouse wheel if there is no horizontal scrollbar enabled?
thanks for the quick reply!
Yes, I understand it would be easier to hack temporary (remember Shift press state, release it, apply scroll delta, set Shift down again if it was pressed before).
1. Something like a "ShiftWheelScrollsHorizontally" attached property that you could set in a ListBox for example could work for you?
This is not a reasonable approach as not many NoesisGUI users will be aware of such extension property.
2. when the shift key is pressed, scroll vertically with the mouse wheel if there is no horizontal scrollbar enabled?
This is a very reasonable approach and it doesn't require any extra work! I like it.
Also, it might be a good idea to simply expose this in NoesisGUI API so we could simply set a global option to toggle the horizontal scroll feature completely. It's not used for 99.9% of games, I'm sure about this! :-)
So probably it's better to keep it off by default unless you want to follow WPF behavior here completely (which I'm not sure about).
No rush, this workaround seems to work fine in our case:
this.view.KeyUp(Key.LeftShift); this.view.KeyUp(Key.RightShift); this.view.MouseWheel(x, y, scrollDeltaValue);
I'm quite certain that the workaround is causing some unexpected issues with input though...I hope this feature will be implemented soon.
I would even prefer a NoesisGUI global option to disable horizontal scroll with Shift key altogether. I bet almost all video games are never using horizontal scrollbars and even if they do, it's unlikely that users would grief the absence of Shift+Scroll feature.
|2019-04-27 22:52||ai_enabled||New Issue|
|2019-04-30 10:12||sfernandez||Assigned To||=> sfernandez|
|2019-04-30 10:12||sfernandez||Status||new => feedback|
|2019-04-30 10:12||sfernandez||Note Added: 0005656|
|2019-04-30 10:13||sfernandez||Target Version||=> 2.2.3|
|2019-04-30 13:21||ai_enabled||Note Added: 0005657|
|2019-04-30 13:21||ai_enabled||Status||feedback => assigned|
|2019-05-02 14:38||ai_enabled||Note Added: 0005661|
|2019-06-18 16:59||sfernandez||Target Version||2.2.3 => 2.2.4|
|2019-08-26 15:26||jsantos||Target Version||2.2.4 => 2.2.5|
|2019-08-29 21:54||ai_enabled||Note Added: 0005953|