excalidraw/src/components
Aakansha Doshi c19c8ecd27
feat: Add scroll listener to the nearest scrollable container and allow consumer to disable it (#3408)
* fix: Add scroll listener to the nearest scrollable container

* fix

* use loop instead of recursion

* fix

* return document

* calculate nearest scrollable container in settimeout to unblock main thread

* Add prop detectNearestScroll and clear timeout on unmount

* disable scroll listener on excal app

* update prop name to detectScroll

* update docs

* remove settimeout

* tweak docs

Co-authored-by: David Luzar <luzar.david@gmail.com>

* tweak changelog

Co-authored-by: David Luzar <luzar.david@gmail.com>

* lint

Co-authored-by: David Luzar <luzar.david@gmail.com>
2021-04-09 20:44:54 +05:30
..
Actions.tsx feat: use component dimensions to break to mobile (#3414) 2021-04-08 19:54:50 +02:00
App.tsx feat: Add scroll listener to the nearest scrollable container and allow consumer to disable it (#3408) 2021-04-09 20:44:54 +05:30
Avatar.scss reuse scss variables in js for SSOT (#2867) 2021-01-28 17:28:35 +05:30
Avatar.tsx Add border to the Avatars (#2428) 2020-11-29 20:19:06 +02:00
BackgroundPickerAndDarkModeToggle.tsx feat: Add theme prop (#3228) 2021-03-16 00:03:46 +05:30
ButtonIconCycle.tsx refactor: Use arrow function where possible (#3315) 2021-03-29 17:09:20 +03:00
ButtonIconSelect.tsx Update ESLint rules (#2342) 2020-11-06 21:06:30 +01:00
ButtonSelect.tsx Update ESLint rules (#2342) 2020-11-06 21:06:30 +01:00
CollabButton.scss chore: Consistent CSS variable names and general housekeeping of styles (#2947) 2021-02-16 20:22:18 +02:00
CollabButton.tsx feat: use component dimensions to break to mobile (#3414) 2021-04-08 19:54:50 +02:00
ColorPicker.scss feat: use component dimensions to break to mobile (#3414) 2021-04-08 19:54:50 +02:00
ColorPicker.tsx refactor: Stop using the deprecated keyCode (#2426) 2020-12-01 22:36:06 +01:00
ContextMenu.scss feat: use component dimensions to break to mobile (#3414) 2021-04-08 19:54:50 +02:00
ContextMenu.tsx fix: popover positioning (#3399) 2021-04-05 17:26:37 +02:00
DarkModeToggle.tsx feat: Add theme prop (#3228) 2021-03-16 00:03:46 +05:30
Dialog.scss feat: use component dimensions to break to mobile (#3414) 2021-04-08 19:54:50 +02:00
Dialog.tsx feat: use component dimensions to break to mobile (#3414) 2021-04-08 19:54:50 +02:00
ErrorDialog.tsx fix: incorrectly caching png file handle (#3407) 2021-04-06 21:27:15 +02:00
ExportDialog.scss feat: use component dimensions to break to mobile (#3414) 2021-04-08 19:54:50 +02:00
ExportDialog.tsx feat: use component dimensions to break to mobile (#3414) 2021-04-08 19:54:50 +02:00
FixedSideContainer.scss scope css under name space excalidraw (#1983) 2020-09-25 23:18:45 +02:00
FixedSideContainer.tsx Add and use clsx (classnames alternative) (#2249) 2020-10-19 16:14:28 +02:00
GitHubCorner.tsx refactor: Rename appearance to theme (#3237) 2021-03-13 18:58:06 +05:30
HelpDialog.scss reuse scss variables in js for SSOT (#2867) 2021-01-28 17:28:35 +05:30
HelpDialog.tsx feat: Add option to flip single element on the context menu (#2520) 2021-03-26 16:45:08 +01:00
HelpIcon.tsx fix: Make help toggle tabbable (#3310) 2021-03-23 16:48:10 +05:30
HintViewer.scss feat: use component dimensions to break to mobile (#3414) 2021-04-08 19:54:50 +02:00
HintViewer.tsx improvement: change hint for 2-point lines on resize (#2655) 2020-12-22 11:00:51 +01:00
IconPicker.scss feat: use component dimensions to break to mobile (#3414) 2021-04-08 19:54:50 +02:00
IconPicker.tsx More Arrowheads: dot, bar (#2486) 2020-12-11 18:17:28 +01:00
icons.tsx fix: Show Windows share icon for Windows users (#3306) 2021-03-22 17:02:20 +01:00
InitializeApp.tsx feat: Updates to Collaboration and RTL UX (#2994) 2021-02-08 21:43:51 +01:00
Island.scss chore: Consistent CSS variable names and general housekeeping of styles (#2947) 2021-02-16 20:22:18 +02:00
Island.tsx Fix padding in the library loading buttons (#2331) 2020-11-04 11:05:12 +01:00
LayerUI.scss chore: Consistent CSS variable names and general housekeeping of styles (#2947) 2021-02-16 20:22:18 +02:00
LayerUI.tsx feat: use component dimensions to break to mobile (#3414) 2021-04-08 19:54:50 +02:00
LibraryUnit.scss refactor: Rename appearance to theme (#3237) 2021-03-13 18:58:06 +05:30
LibraryUnit.tsx feat: use component dimensions to break to mobile (#3414) 2021-04-08 19:54:50 +02:00
LoadingMessage.tsx make loading message account for dark mode & add i18n (#2033) 2020-08-14 13:27:41 +02:00
LockIcon.tsx Add and use clsx (classnames alternative) (#2249) 2020-10-19 16:14:28 +02:00
MobileMenu.tsx feat: Add theme prop (#3228) 2021-03-16 00:03:46 +05:30
Modal.scss feat: use component dimensions to break to mobile (#3414) 2021-04-08 19:54:50 +02:00
Modal.tsx feat: use component dimensions to break to mobile (#3414) 2021-04-08 19:54:50 +02:00
PasteChartDialog.scss feat: use component dimensions to break to mobile (#3414) 2021-04-08 19:54:50 +02:00
PasteChartDialog.tsx fix: Track the chart type correctly (#2773) 2021-01-13 15:23:14 +02:00
Popover.scss fix: popover positioning (#3399) 2021-04-05 17:26:37 +02:00
Popover.tsx chore: Minor refactoring for consistency (#2425) 2020-11-29 17:32:51 +01:00
ProjectName.tsx feat: Add label for name field and use input when editable in export dialog (#3286) 2021-03-20 21:57:58 +05:30
Section.tsx Prefer arrow functions and callbacks (#1210) 2020-05-20 15:21:37 +02:00
Stack.scss scope css under name space excalidraw (#1983) 2020-09-25 23:18:45 +02:00
Stack.tsx Fix padding in the library loading buttons (#2331) 2020-11-04 11:05:12 +01:00
Stats.scss chore: Consistent CSS variable names and general housekeeping of styles (#2947) 2021-02-16 20:22:18 +02:00
Stats.tsx feat: use component dimensions to break to mobile (#3414) 2021-04-08 19:54:50 +02:00
TextInput.scss chore: Consistent CSS variable names and general housekeeping of styles (#2947) 2021-02-16 20:22:18 +02:00
Toast.scss feat: Add export info on copy PNG to clipboard toast message (#3159) 2021-03-03 14:15:10 +02:00
Toast.tsx feat: Add toast (#2772) 2021-01-15 16:02:46 +01:00
ToolButton.tsx feat: Allow host app to update title of drawing (#3273) 2021-03-20 16:08:03 +05:30
ToolIcon.scss feat: use component dimensions to break to mobile (#3414) 2021-04-08 19:54:50 +02:00
Tooltip.scss fix: disable UI pointer-events on canvas drag (#2856) 2021-02-01 14:55:38 +02:00
Tooltip.tsx feat: Add tooltip with icon for embedding scenes (#2532) 2020-12-14 14:24:54 +01:00
TopErrorBoundary.tsx fix: cursor being leaked outside of canvas (#3161) 2021-03-03 14:04:02 +01:00
UserList.scss scope css under name space excalidraw (#1983) 2020-09-25 23:18:45 +02:00
UserList.tsx Add and use clsx (classnames alternative) (#2249) 2020-10-19 16:14:28 +02:00