Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

draggabilly handle does not work in firefox 44 #1

Open
jakeloggins opened this issue Feb 17, 2016 · 4 comments
Open

draggabilly handle does not work in firefox 44 #1

jakeloggins opened this issue Feb 17, 2016 · 4 comments

Comments

@jakeloggins
Copy link

in crouton-dashboard.jade:

        relayout: function(element){
          if(element){
            this.container.appendChild(element);
            this.pckry.appended(element);
            // for some reason this handle thing doesn't work in firefox
            var draggie = new Draggabilly(element, {
                handle: '.dragger'
            }); 
            //var draggie = new Draggabilly(element);
            this.pckry.bindDraggabillyEvents(draggie);
            element.style.opacity = "1";
            this.pckry.layout();
          } else {
            if(this.pckry){
              this.pckry.layout();
            }
          }
        },

None of the items, or anything within the items, drag at all on firefox v44. If I get rid of the handle, everything will drag, which is annoying. Eliminating the handle makes the animations look funny on Chrome. I tried a lot of different fixes but none of them worked.

I really like the rest of this project, all the other MQTT dashboards are trying to get me to buy something and/or overly complicated. Thanks for making it!

@wickwire
Copy link
Contributor

Hi, I'm noticing this behaviour as well - Firefox 45.0.2

However, in my case it only seems to happen when a Device first connects, and I move to the Dashboard tab.
Try the following steps and write back if you can:

Using the original code and with the items undraggable, go to Connections, then disconnect the Device (leave the MQTT broker connection established) - then reconnect the Device. Go back to the Dashboard and try dragging the items then. It works for me. Perhaps this is an item initialization issue under firefox? I'll have a look as well if I can.

Note: on Chromium, everything works fine for me even at first try.

@jakeloggins
Copy link
Author

Yes, that fix works for me too. Wow.

@wickwire
Copy link
Contributor

Well it doesn't actually solve the problem, just manages to make it more usable until it's actually fixed ;)

edfungus pushed a commit that referenced this issue Apr 30, 2016
Pulling in edfungus new merges
@AtosNicoS
Copy link

I still have this problem with Firefox 61 using the official demo website. If I disconnect the device and reconnect it, it starts working. It seems to be a problem of the first connect.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants