Marshall Bowers
7321c814ce
gpui: Add restrict_scroll_to_axis to match web scrolling behavior ( #25963 )
...
This PR adds a new `restrict_scroll_to_axis` style to allow consumers to
opt-in to the scrolling behavior found on the web.
When this is enabled the behavior will be such that:
- Scrolling using the mouse wheel will only scroll the Y axis
- Scrolling using the mouse wheel with <kbd>Shift</kbd> held will only
scroll the X axis
This behavior is useful in scenarios where you have some
vertically-scrollable content that is interspersed with
horizontally-scrollable elements, as otherwise the scroll will be
constantly hijacked by the horizontally-scrollable elements while trying
to scroll up and down in the vertically-scrollable container.
I think that this behavior should be the default, but it's a bit of a
sweeping change to make all at once, so for now it remains opt-in.
Release Notes:
- N/A
2025-03-03 17:32:08 -05:00
..
2025-01-27 04:00:27 +00:00
2025-02-24 16:10:26 -05:00
2025-01-26 03:02:45 +00:00
2025-03-01 00:34:28 +01:00
2025-03-03 18:38:15 +00:00
2025-03-03 18:38:15 +00:00
2025-02-24 18:10:12 -05:00
2025-02-19 15:32:29 +00:00
2025-03-01 00:34:28 +01:00
2025-01-26 03:02:45 +00:00
2025-02-24 09:37:07 -05:00
2025-01-26 03:02:45 +00:00
2025-02-18 20:30:33 +00:00
2025-03-03 09:20:15 +00:00
2025-02-24 20:28:20 +00:00
2025-02-25 13:52:42 -05:00
2025-03-03 09:20:15 +00:00
2025-02-28 20:55:29 +00:00
2025-02-18 20:30:33 +00:00
2025-02-28 18:33:35 +01:00
2025-03-02 00:17:55 +08:00
2025-02-20 17:58:50 +00:00
2025-01-17 17:39:22 +01:00
2025-03-01 00:34:28 +01:00
2025-03-03 17:44:49 +05:30
2025-01-17 17:39:22 +01:00
2025-02-18 20:30:33 +00:00
2025-02-11 04:55:40 +00:00
2025-02-28 20:00:39 +00:00
2025-03-03 18:38:15 +00:00
2025-02-26 17:19:19 +00:00
2025-01-26 03:02:45 +00:00
2025-02-28 18:33:35 +01:00
2025-02-20 19:07:16 +00:00
2025-02-18 20:30:33 +00:00
2025-01-27 13:40:59 -05:00
2025-03-03 09:20:15 +00:00
2025-01-26 03:02:45 +00:00
2025-03-03 14:44:39 -07:00
2025-02-19 15:32:29 +00:00
2025-02-18 17:47:25 +00:00
2025-02-28 18:33:35 +01:00
2025-03-03 15:55:15 +00:00
2025-02-28 18:33:35 +01:00
2025-03-03 18:38:15 +00:00
2025-02-13 21:48:09 +00:00
2025-02-18 20:30:33 +00:00
2025-03-03 17:44:49 +05:30
2025-02-15 00:35:13 +00:00
2025-03-03 20:33:02 +00:00
2025-01-30 23:53:36 -07:00
2025-02-28 18:33:35 +01:00
2025-03-03 15:04:46 +00:00
2025-02-20 19:11:32 -05:00
2025-03-03 22:00:32 +00:00
2025-02-14 15:41:49 +01:00
2025-02-24 07:29:55 +00:00
2025-03-03 17:32:08 -05:00
2025-02-22 10:19:23 -05:00
2025-01-31 02:00:55 +00:00
2025-01-26 03:02:45 +00:00
2025-02-28 18:33:35 +01:00
2025-02-26 17:24:35 +01:00
2025-01-26 03:02:45 +00:00
2025-02-10 22:28:56 -03:00
2025-02-27 15:29:32 -03:00
2025-01-26 23:37:34 +00:00
2025-02-18 20:30:33 +00:00
2025-03-03 22:41:46 +02:00
2025-02-28 18:33:35 +01:00
2025-02-28 18:33:35 +01:00
2025-03-03 18:38:15 +00:00
2025-02-28 12:06:47 -03:00
2025-01-28 19:04:21 -05:00
2025-02-18 14:27:00 +00:00
2025-03-02 00:43:51 +00:00
2025-02-19 23:32:51 +00:00
2025-02-18 20:30:33 +00:00
2025-02-16 20:24:12 +00:00
2025-01-31 22:28:11 +00:00
2025-02-27 16:45:59 +01:00
2025-03-03 21:01:26 +00:00
2025-03-03 12:36:27 +01:00
2025-01-17 17:39:22 +01:00
2025-03-03 17:44:49 +05:30
2025-03-03 21:19:25 +05:30
2025-02-14 13:07:41 -05:00
2025-03-03 18:53:34 +00:00
2025-01-30 08:56:02 -08:00
2025-02-28 18:33:35 +01:00
2025-01-26 03:02:45 +00:00
2025-02-19 11:06:20 -05:00
2025-03-03 17:44:49 +05:30
2025-03-03 17:44:49 +05:30
2025-02-28 20:00:39 +00:00
2025-02-09 16:51:37 -07:00
2025-03-03 17:44:49 +05:30
2025-02-27 16:45:59 +01:00
2025-03-03 10:32:49 -05:00
2025-03-03 17:44:49 +05:30
2025-03-03 09:20:15 +00:00
2025-03-01 00:34:28 +01:00
2025-03-01 00:34:28 +01:00
2025-03-03 09:20:15 +00:00
2025-02-21 06:24:02 -03:00
2025-02-05 14:30:09 +00:00
2025-02-27 08:00:42 +00:00
2025-02-26 16:23:25 -05:00
2025-02-18 20:30:33 +00:00
2025-03-03 17:44:49 +05:30
2025-02-17 11:42:22 -05:00
2025-03-03 09:20:15 +00:00
2025-02-28 18:33:35 +01:00
2025-02-06 00:09:37 +00:00
2025-01-31 01:22:10 +00:00
2025-03-03 17:44:49 +05:30
2025-02-19 15:32:29 +00:00
2025-01-17 17:39:22 +01:00
2025-02-18 20:30:33 +00:00
2025-03-03 17:44:49 +05:30
2025-02-21 06:24:02 -03:00
2025-01-26 03:02:45 +00:00
2025-01-28 10:37:48 +01:00
2025-01-27 04:00:27 +00:00
2025-02-28 18:33:35 +01:00
2025-02-05 14:30:09 +00:00
2025-01-26 03:02:45 +00:00
2025-03-03 17:44:49 +05:30
2025-01-17 17:39:22 +01:00
2025-02-28 18:33:35 +01:00
2025-02-07 22:06:37 +00:00
2025-01-26 03:02:45 +00:00
2025-03-03 17:44:49 +05:30
2025-02-18 20:30:33 +00:00
2025-02-27 22:57:59 +00:00
2025-01-17 17:39:22 +01:00
2025-02-06 02:09:24 -07:00
2025-02-28 18:33:35 +01:00
2025-02-22 00:05:52 +05:30
2025-02-28 18:33:35 +01:00
2025-02-24 19:19:06 +00:00
2025-02-18 17:47:25 +00:00
2025-01-31 01:22:10 +00:00
2025-02-20 00:02:24 +00:00
2025-02-12 15:57:08 -07:00
2025-03-03 18:38:15 +00:00
2025-02-19 15:32:29 +00:00
2025-03-03 18:38:15 +00:00
2025-01-26 03:02:45 +00:00
2025-02-21 06:24:02 -03:00
2025-03-01 14:13:38 -05:00
2025-02-05 14:30:09 +00:00
2025-03-03 14:44:39 -07:00
2025-01-26 03:02:45 +00:00
2025-02-21 06:52:34 +00:00
2025-03-03 21:19:25 +05:30
2025-03-03 20:33:02 +00:00
2025-03-03 12:48:51 -05:00
2025-02-14 13:27:48 +02:00
2025-03-03 17:44:49 +05:30