Code Monkey home page Code Monkey logo

core-drag-drop's People

Contributors

addyosmani avatar dfreedm avatar sorvell avatar

Stargazers

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

Watchers

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

core-drag-drop's Issues

Uncaught TypeError: undefined is not a function

Drag and drop is broken as of 14 hours ago. Here's the traceback from the core-drag-drop from http://www.polymer-project.org/components/core-drag-drop/demo.html and http://www.polymer-project.org/tools/designer:

Uncaught TypeError: undefined is not a function core-drag-drop.html:58
(anonymous function) core-drag-drop.html:58
Polymer.attached core-drag-drop.html:61
d.attachedCallback base.js:88
f.registerPrototype prototype.js:197
f.register prototype.js:26
d._register polymer-element.js:64
e.flush queue.js:100
e.ready queue.js:105
e.check queue.js:80
(anonymous function) queue.js:162
c HTMLImports.js:220
d HTMLImports.js:225
h HTMLImports.js:230
(anonymous function) HTMLImports.js:186
g HTMLImports.js:210
c HTMLImports.js:205

And points to this block of code:

attached: function() {
    var listen = function(event, handler) {
        PolymerGestures.addGesture(this.parentNode, event, this[handler].bind(this));
  }.bind(this);

bower.json missing

a reference to bower.json seems to be missing. causing this error: GET http://localhost:8000/core-drag-drop/bower.json 404 (File not found) core-component-page.html:12

[feature needed]catch the hover target when dragging

As the title described. the this.dragInfo:

listen('trackstart', 'trackStart');
listen('track', 'track');
listen('trackend', 'trackEnd');

has no hover target. So there's no way to make sure the element I will drop if I release my mouse here.

I found that global addEventListener('mousemove', ...) can do this and send a pull request. But I've no idea about the perfect way.

Thanks.

"TypeError: node.getBoundingClientRect is not a function" on drop outside the document (FF 32)

Hi !

In Firefox 32, I get an error :

TypeError: node.getBoundingClientRect is not a function

with the core-drag-drop demo , when I drop an "Hello World" element outside the DOM document, or outside the browser window.
I get a similar error in node-webkit 0.10.5 (chromium 35) :

TypeError: Cannot read property 'getBoundingClientRect' of null"

In the framed function, node seems to be null.

No problem in Chrome 38.

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.