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
2016-01-20 09:46:38 -07:00
2016-01-21 09:32:22 -07:00
2016-01-21 09:32:22 -07:00
🎨
2016-01-12 16:24:06 -08:00
2016-01-16 11:43:46 +08:00
2015-07-03 23:33:49 +08:00
2015-10-06 16:34:20 -04:00
2015-12-10 13:18:23 +08:00
2016-01-15 14:27:19 +08:00
2015-12-03 18:06:18 -06:00
2015-12-04 13:48:38 +09:00
2014-05-04 20:29:08 +08:00
2016-01-21 09:32:21 -07:00
2015-12-25 12:20:08 +08:00
2016-01-20 19:05:35 +09:00
2015-10-08 10:19:24 +08:00

Electron Logo

Build Status devDependency Status Join the Electron Community on Slack

Formerly known as Atom Shell

The Electron framework lets you write cross-platform desktop applications using JavaScript, HTML and CSS. It is based on Node.js and Chromium and is used in the Atom editor.

Follow @ElectronJS on Twitter for important announcements.

This project adheres to the Contributor Covenant code of conduct. By participating, you are expected to uphold this code. Please report unacceptable behavior to atom@github.com.

Downloads

Prebuilt binaries and debug symbols of Electron for Linux, Windows and OS X can be found on the releases page.

You can also use npm to install prebuilt electron binaries:

# Install the `electron` command globally in your $PATH
npm install electron-prebuilt -g

# Install as a development dependency
npm install electron-prebuilt --save-dev

Mirrors

Documentation

Guides and the API reference are located in the docs directory. It also contains documents describing how to build and contribute to Electron.

Documentation Translations

Quick Start

Clone and run the atom/electron-quick-start repository to see a minimal Electron app in action.

Community

You can ask questions and interact with the community in the following locations:

Check out awesome-electron for a community maintained list of useful example apps, tools and resources.

Description
No description provided
Readme MIT 331 MiB
Languages
C++ 56.7%
TypeScript 32.6%
Objective-C++ 5.6%
JavaScript 2.2%
Python 1.7%
Other 1.1%