View Issue Details
|ID||Project||Category||View Status||Date Submitted||Last Update|
|0001457||NoesisGUI||C# SDK||public||2019-04-27 22:52||2019-06-18 16:59|
|Target Version||2.2.4||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);
|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|