electron/atom/browser
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
..
api Extend NativeWindow to track touch-based scroll events on OS X 2016-01-21 09:40:21 -08:00
default_app Clean up semicolon lint errors 2016-01-21 09:32:21 -07:00
lib e -> error 2016-01-21 09:32:21 -07:00
mac Don't add the "Enter Full Screen" menu item automatically 2015-12-10 11:27:41 +08:00
net Fix crash when request failed 2016-01-06 21:07:07 +08:00
resources Bump v0.36.4 2016-01-15 14:27:19 +08:00
ui browser: fix crash when switching to sibling menu from submenus 2016-01-20 10:54:12 +05:30
atom_access_token_store.cc Replace "Url" in API names with "URL" 2015-11-13 16:03:40 +08:00
atom_access_token_store.h OVERRIDE macro is now removed 2015-01-27 13:18:30 -08:00
atom_browser_client.cc Fix coding styles 2015-12-29 18:59:27 +08:00
atom_browser_client.h protocol: api to register schemes that can handle service worker 2015-12-09 03:11:58 +05:30
atom_browser_context.cc session: add webrequest api 2015-12-09 20:14:18 +05:30
atom_browser_context.h session: add webrequest api 2015-12-09 20:14:18 +05:30
atom_browser_main_parts.cc Pass --touch-devices to chromium contents under X11 2016-01-11 12:23:53 +01:00
atom_browser_main_parts.h Include exit code with quit event 2015-12-09 18:09:59 -08:00
atom_browser_main_parts_mac.mm Initialize resource bundle on browser process separately 2016-01-08 12:06:06 +08:00
atom_browser_main_parts_posix.cc Fix cpplint warnings 2015-10-04 19:36:41 +08:00
atom_download_manager_delegate.cc Redefine 'will-download' design. 2015-09-24 16:04:44 +08:00
atom_download_manager_delegate.h Some cleanup. 2015-09-24 19:31:09 +08:00
atom_javascript_dialog_manager.cc Make beforeunload work in webview 2015-05-01 13:48:39 +08:00
atom_javascript_dialog_manager.h Fix compilation errors 2015-05-22 15:24:34 +08:00
atom_quota_permission_context.cc browser: create quota permission context to allow quota request 2015-05-12 17:52:30 +05:30
atom_quota_permission_context.h browser: create quota permission context to allow quota request 2015-05-12 17:52:30 +05:30
atom_resource_dispatcher_host_delegate.cc Add dummy LoginHandler 2015-10-28 19:54:59 +08:00
atom_resource_dispatcher_host_delegate.h Add dummy LoginHandler 2015-10-28 19:54:59 +08:00
atom_speech_recognition_manager_delegate.cc Remove All Rights Reserved after GitHub copyright 2014-10-31 11:17:05 -07:00
atom_speech_recognition_manager_delegate.h Upgrade cpplint 2014-12-15 17:15:56 -08:00
auto_updater.cc Simplify the auto-updater implementations 2015-10-23 15:40:56 +08:00
auto_updater.h Simplify the auto-updater implementations 2015-10-23 15:40:56 +08:00
auto_updater_mac.mm Simplify the auto-updater implementations 2015-10-23 15:40:56 +08:00
bridge_task_runner.cc Delete BridgeTaskRunner when main message loop is ready 2015-11-30 22:29:01 +08:00
bridge_task_runner.h Delete BridgeTaskRunner when main message loop is ready 2015-11-30 22:29:01 +08:00
browser.cc Don't emit will-quit event when calling app.exit 2015-12-10 11:22:55 +08:00
browser.h Add Delegate for AtomBrowserClient 2015-11-18 10:07:03 +08:00
browser_linux.cc win: Set app user model ID in one place 2015-11-03 15:09:31 +08:00
browser_mac.mm osx: Implement clear recent documents 2015-12-29 18:36:16 -06:00
browser_observer.h Get exit code from within App::OnQuit 2015-12-09 18:19:51 -08:00
browser_win.cc Fix up Windows build errors 2015-12-07 10:02:06 -08:00
common_web_contents_delegate.cc Update to API changes of Chrome 47 2015-12-07 19:56:23 +08:00
common_web_contents_delegate.h Inherit owner window in devtools 2015-10-01 14:41:01 +08:00
javascript_environment.cc Cleanup and docs for the --js-flags 2015-11-13 12:22:08 +08:00
javascript_environment.h Initialize V8 in browser process 2015-05-22 15:30:02 +08:00
login_handler.cc Guard against multiple calls of auth 2015-10-28 21:20:08 +08:00
login_handler.h Guard against multiple calls of auth 2015-10-28 21:20:08 +08:00
native_window.cc Extend NativeWindow to track touch-based scroll events on OS X 2016-01-21 09:40:21 -08:00
native_window.h Extend NativeWindow to track touch-based scroll events on OS X 2016-01-21 09:40:21 -08:00
native_window_mac.h arguments handing rewritten, doc updated 2016-01-15 17:31:31 +01:00
native_window_mac.mm Extend NativeWindow to track touch-based scroll events on OS X 2016-01-21 09:40:21 -08:00
native_window_observer.h Extend NativeWindow to track touch-based scroll events on OS X 2016-01-21 09:40:21 -08:00
native_window_views.cc code style fix 2016-01-15 17:40:42 +01:00
native_window_views.h Animate window resizing on OS X 2016-01-15 05:59:58 +01:00
native_window_views_win.cc arguments handing rewritten, doc updated 2016-01-15 17:31:31 +01:00
node_debugger.cc debugger: expose v8debug 2015-10-22 16:20:48 +05:30
node_debugger.h Use libuv to wake up main thread 2015-08-27 13:30:04 +08:00
web_contents_preferences.cc Add blinkFeatures option 2016-01-07 14:10:18 +08:00
web_contents_preferences.h Avoid storing unrelated things in WebContentsPreferences 2015-11-11 10:37:34 +08:00
web_dialog_helper.cc Merge pull request #2340 from atom/set_download_path_api 2015-07-29 17:19:02 +08:00
web_dialog_helper.h Implement EnumerateDirectory 2014-10-31 17:37:32 +08:00
web_view_guest_delegate.cc remove unused code 2015-09-08 05:24:07 +05:30
web_view_guest_delegate.h Fix WillAttach API changes in content::BrowserPluginGuestDelegate. 2015-08-11 09:48:29 +08:00
web_view_manager.cc Read guest view's info from WebContentsPreferences 2015-09-06 10:53:03 +08:00
web_view_manager.h Read guest view's info from WebContentsPreferences 2015-09-06 10:53:03 +08:00
window_list.cc Fix API changes 2015-09-03 17:50:23 +09:00
window_list.h Fix API changes 2015-09-03 17:50:23 +09:00
window_list_observer.h Remove All Rights Reserved after GitHub copyright 2014-10-31 11:17:05 -07:00