electron/atom/browser/api
Ben Gotow bd2252ea55 Extend NativeWindow to track touch-based scroll events on OS X
In N1, we want to implement the famous "swipe to archive" action on threads in the user's inbox. Chrome exposes `scroll` and `wheel` events, but these aren't sufficient to implement the interaction because the element needs to "snap" when the user lifts their fingers from the trackpad, not when they / we stop receiving `wheel` / `scroll` events. These events may stop before the user lifts their fingers, or continue after the user has lifted their fingers if they had enough momentum for the gesture to continue.

This exposes BrowserWindow `scroll-touch-down` and `scroll-touch-up`, which fire immeditaely when the user touches two fingers to the trackpad, and again when the user lifts their fingers. Combined with the existing wheel event should allow for "swipe-to-archive" and other similar interactions.

Note: This is only implemented on Mac OS X and the events don't fire unless you're using a trackpad!

Related: #1486, #2683, https://github.com/nylas/N1/issues/541
2016-01-21 09:40:21 -08:00
..
lib Clean up no-unused-vars lint errors 2016-01-21 09:32:21 -07:00
atom_api_app.cc Add API for checking if AeroGlass/DWM is enabled 2016-01-16 06:27:44 +02:00
atom_api_app.h Add API for checking if AeroGlass/DWM is enabled 2016-01-16 06:27:44 +02:00
atom_api_auto_updater.cc Replace "Url" in API names with "URL" 2015-11-13 16:03:40 +08:00
atom_api_auto_updater.h Simplify the auto-updater implementations 2015-10-23 15:40:56 +08:00
atom_api_content_tracing.cc No longer needs to define node_includes.h at last 2015-09-07 16:41:49 +08:00
atom_api_cookies.cc Cleanup the cookies code 2015-12-12 15:33:51 +08:00
atom_api_cookies.h Cleanup the cookies code 2015-12-12 15:33:51 +08:00
atom_api_desktop_capturer.cc Simplify the desktopCapturer code 2015-12-08 13:49:26 +08:00
atom_api_desktop_capturer.h Simplify the desktopCapturer code 2015-12-08 13:49:26 +08:00
atom_api_dialog.cc Fix style issues of #4029 2016-01-11 21:12:07 +08:00
atom_api_download_item.cc Use BuildPrototype to build prototype 2015-12-03 16:04:46 +08:00
atom_api_download_item.h Use BuildPrototype to build prototype 2015-12-03 16:04:46 +08:00
atom_api_global_shortcut.cc Do not manually manage native resources 2015-12-03 15:38:43 +08:00
atom_api_global_shortcut.h Do not manually manage native resources 2015-12-03 15:38:43 +08:00
atom_api_menu.cc Do not manually manage native resources 2015-12-03 15:38:43 +08:00
atom_api_menu.h Do not manually manage native resources 2015-12-03 15:38:43 +08:00
atom_api_menu_mac.h Do not manually manage native resources 2015-12-03 15:38:43 +08:00
atom_api_menu_mac.mm Do not manually manage native resources 2015-12-03 15:38:43 +08:00
atom_api_menu_views.cc Remove NativeWindow::GetWebContents 2015-06-25 14:54:00 +08:00
atom_api_menu_views.h OVERRIDE macro is now removed 2015-01-27 13:18:30 -08:00
atom_api_power_monitor.cc Do not manually manage native resources 2015-12-03 15:38:43 +08:00
atom_api_power_monitor.h Do not manually manage native resources 2015-12-03 15:38:43 +08:00
atom_api_power_save_blocker.cc Do not manually manage native resources 2015-12-03 15:38:43 +08:00
atom_api_power_save_blocker.h Do not manually manage native resources 2015-12-03 15:38:43 +08:00
atom_api_protocol.cc protocol: api to register schemes that can handle service worker 2015-12-09 03:11:58 +05:30
atom_api_protocol.h protocol: api to register schemes that can handle service worker 2015-12-09 03:11:58 +05:30
atom_api_screen.cc fix typo in "rotation" string 2015-11-29 12:22:53 -06:00
atom_api_screen.h Refine: make desktop-capturer as a renderer module. 2015-10-04 22:04:41 +08:00
atom_api_session.cc GetHttpCacheInIO => DoCacheActionInIO 2016-01-14 20:48:14 +08:00
atom_api_session.h session: api to get current cache size 2016-01-14 17:15:45 +05:30
atom_api_tray.cc Do not manually manage native resources 2015-12-03 15:38:43 +08:00
atom_api_tray.h Do not manually manage native resources 2015-12-03 15:38:43 +08:00
atom_api_web_contents.cc Small ajustments on lifetime of webContents 2016-01-15 16:36:35 +08:00
atom_api_web_contents.h Change webview's zoom level on JavaScript side 2016-01-13 12:50:02 +08:00
atom_api_web_request.cc Use generic function to handle events 2015-12-12 13:49:58 +08:00
atom_api_web_request.h Make the webRequest listener asynchronous 2015-12-12 00:09:03 +08:00
atom_api_web_view_manager.cc No need to define WebContentsPreferences::From 2015-09-07 16:16:34 +08:00
atom_api_window.cc Extend NativeWindow to track touch-based scroll events on OS X 2016-01-21 09:40:21 -08:00
atom_api_window.h Extend NativeWindow to track touch-based scroll events on OS X 2016-01-21 09:40:21 -08:00
event.cc
event.h
event_emitter.cc Tell compiler we want to ignore result of SetPrototype 2015-08-11 10:10:07 +08:00
event_emitter.h Fix leak of handle when emitting events 2015-08-27 15:22:02 +08:00
frame_subscriber.cc Update to API changes of Chrome 47 2015-12-07 19:56:23 +08:00
frame_subscriber.h Move BeginFrameSubscription to WebContents 2015-09-18 15:57:43 +08:00
save_page_handler.cc Fix: savePage API saves external resources in a wrong directory. 2015-10-18 11:28:05 +08:00
save_page_handler.h Implement webContents.savePage API. 2015-10-16 09:23:08 +08:00
trackable_object.cc Remove itself from the cleanup list when it is destroyed 2015-12-03 17:04:40 +08:00
trackable_object.h Weak map only needs to be deleted for once 2015-12-03 17:10:14 +08:00