Vadim Zeitlin
10c51dbf28
Avoid spurious asserts when holding arrows in GTK wxSpinButton
...
The change in the value can be greater than 1 when the arrows are held
pressed, contrary to what the logic of determining the wraparound added
in 086793ceef
supposed.
Replace this with a check of whether we switch from the min value
directly to the max one or vice versa, which mostly works and avoids
asserts, even if it can still fail and produces wrong events when the
arrows are held pressed for long enough to increase the delta to the
range of the control, in which case we just can't distinguish between
wraparound and passing from min to max (or vice versa) in a single step,
which means that we have no way to determine the right event to send.
But producing a wrong event is better than asserting, so this still
counts as an improvement.
Closes https://github.com/wxWidgets/wxWidgets/pull/1764
See #17957 .
Closes #18695 .
2020-03-19 01:11:06 +01:00
..
2015-04-23 22:00:35 +04:00
2019-04-22 14:12:05 +02:00
2018-05-21 12:34:04 +02:00
2018-05-21 12:34:04 +02:00
2018-12-09 19:21:51 +01:00
2020-02-06 15:59:45 +01:00
2018-05-21 12:34:04 +02:00
2020-02-02 22:50:32 -08:00
2010-10-18 23:43:20 +00:00
2019-12-29 09:08:40 -08:00
2013-07-26 16:02:46 +00:00
2018-06-06 09:09:12 -07:00
2020-02-02 22:50:32 -08:00
2020-02-02 22:50:32 -08:00
2018-07-30 21:46:50 +02:00
2010-10-18 23:43:20 +00:00
2019-11-29 04:31:14 +01:00
2018-05-21 12:34:04 +02:00
2018-05-21 12:34:04 +02:00
2020-02-02 22:50:32 -08:00
2019-04-21 01:53:14 +02:00
2018-05-21 12:34:04 +02:00
2019-07-16 20:19:33 +02:00
2013-07-26 16:02:46 +00:00
2019-07-26 18:02:08 +02:00
2019-11-11 08:29:28 -08:00
2011-03-09 16:35:56 +00:00
2018-05-21 12:34:04 +02:00
2015-10-02 09:12:17 -07:00
2019-11-07 11:26:10 -08:00
2019-11-23 08:41:31 -08:00
2020-02-02 22:50:32 -08:00
2019-11-07 11:26:10 -08:00
2019-11-07 11:26:10 -08:00
2020-03-05 08:15:04 +01:00
2018-05-21 12:34:04 +02:00
2020-02-02 22:50:32 -08:00
2019-07-25 10:35:12 -07:00
2018-05-21 12:34:04 +02:00
2011-03-06 18:22:28 +00:00
2011-03-06 18:22:28 +00:00
2019-11-27 17:39:21 +01:00
2010-10-18 23:43:20 +00:00
2017-12-19 10:12:04 -08:00
2020-02-02 22:50:32 -08:00
2018-05-21 12:34:04 +02:00
2018-06-01 18:31:59 +02:00
2018-09-17 15:24:41 +02:00
2016-02-08 10:44:50 -08:00
2015-04-23 22:00:35 +04:00
2018-05-21 12:34:04 +02:00
2019-06-21 02:05:19 +02:00
2019-08-28 09:37:49 -07:00
2011-03-09 16:35:56 +00:00
2018-05-21 12:34:04 +02:00
2019-08-05 13:50:11 +02:00
2019-04-05 10:44:02 -07:00
2019-12-10 22:42:00 +01:00
2020-02-02 22:50:32 -08:00
2018-05-21 12:34:04 +02:00
2020-02-19 20:26:08 -08:00
2019-04-22 14:12:05 +02:00
2020-02-02 22:50:32 -08:00
2019-04-22 14:12:05 +02:00
2020-01-20 22:18:55 +02:00
2019-01-28 18:59:34 +01:00
2017-06-27 09:28:39 -07:00
2020-02-02 22:50:32 -08:00
2018-05-21 12:34:04 +02:00
2019-04-05 10:44:02 -07:00
2018-05-21 12:34:04 +02:00
2018-12-09 19:21:51 +01:00
2018-12-09 19:21:51 +01:00
2016-07-17 16:43:12 +02:00
2019-11-29 16:24:07 +01:00
2020-03-11 22:10:22 -07:00
2020-03-11 22:10:22 -07:00
2019-07-15 00:00:20 +02:00
2019-07-07 17:04:55 +02:00
2014-03-30 00:02:23 +00:00
2020-03-19 01:11:06 +01:00
2020-02-02 22:50:32 -08:00
2020-01-07 03:15:39 +01:00
2019-12-29 09:14:08 -08:00
2018-05-21 12:34:04 +02:00
2018-05-21 12:34:04 +02:00
2019-06-19 18:15:58 +02:00
2018-05-21 12:34:04 +02:00
2020-02-02 22:50:32 -08:00
2020-03-11 22:30:55 +01:00
2013-07-26 16:02:46 +00:00
2018-05-21 12:34:04 +02:00
2018-05-21 12:34:04 +02:00
2019-12-29 09:08:40 -08:00
2017-12-16 09:42:39 -08:00
2020-01-30 01:05:45 -08:00
2013-07-26 16:02:46 +00:00
2019-08-25 23:08:59 -07:00
2011-03-09 16:35:56 +00:00
2020-01-10 19:20:26 +01:00
2018-12-02 03:23:02 +01:00
2018-08-19 22:27:34 +02:00
2019-10-01 22:15:16 -07:00
2020-03-11 22:10:22 -07:00