GithubHelp home page GithubHelp logo

aboveproperty / ember-drag-drop-polyfill Goto Github PK

View Code? Open in Web Editor NEW
3.0 17.0 8.0 4.01 MB

Brings drag-drop-polyfill into your Ember applications.

License: MIT License

JavaScript 85.98% HTML 13.77% Handlebars 0.25%
drag-drop-polyfill ember-addon polyfill drag-and-drop

ember-drag-drop-polyfill's Introduction

ember-drag-drop-polyfill

Build Status npm version

This addon brings mobile-drag-drop into your Ember applications to polyfill drag and drop events for mobile browsers.

Compatibility

  • Ember.js v3.16 or above
  • Ember CLI v2.13 or above
  • Node.js v10 or above

Installation

ember install ember-drag-drop-polyfill

For versions of Ember CLI < 2.15,

ember install [email protected]

Usage

Configure what files are included in your build by modifying ember-cli-build.js.

Example:

// ember-cli-build.js

var app = new EmberApp(defaults, {
  // Add options here

  "ember-drag-drop-polyfill": {
    includeCSS: true,
    includeIconsCss: false,
    includeDebugCss: true
  }
});

Pass configuration options through to mobile-drag-drop by modifying config/environment.js.

Example:

// config/environment.js 
var ENV = {

  // ...

  "ember-drag-drop-polyfill": {
    // These options are passed through to mobile-drag-drop
    mobileDragDrop: {
      enableEnterLeave: true,
      holdToDrag: 500, // Hold for 500ms until drag starts
    },
    // These options are used by ember-drag-drop-polyfill
    customOptions: {
      enableIOSHack: true, // Enable if targeting iOS Safari 10.x and higher, see https://github.com/timruffles/mobile-drag-drop/issues/77
      includeScrollBehavior: true // Sets the 'dragImageTranslateOverride' option in mobile-drag-drop
    }
  },
  
  // ...
};

Contributing

See the Contributing guide for details.

License

This project is licensed under the MIT License.

ember-drag-drop-polyfill's People

Contributors

dependabot[bot] avatar ember-tomster avatar jelhan avatar mival avatar tabratton avatar tachun avatar veelci avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

ember-drag-drop-polyfill's Issues

Supported devices

Could you please specify what kind of mobile devices/OS are supported ?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.