I dragged and dropped a field and then this scrolling bug happened.

  • Profile Image
    cliniqueveterinairemirabel
    Asked on August 02, 2018 at 03:28 PM

    I tried to drag and drop and the following video capture happened.  I tried to drag and drop, click, release, nothing would stop it from scrolling up constantly.  I had to go back in the browser history and then go to build form again.  Looks like a javascript race condition to me.  You should have your programmer look into it, as it's pretty annoying when it happens!

    Make sure to watch in full screen mode to see the scroll bar acting up on right side of the video.


  • Profile Image
    EltonCris
    Answered on August 02, 2018 at 04:43 PM

    I couldn't reproduce it here. I've tried different browsers when I add a field on top or at the bottom, it works as expected. I think by simply reloading the page would fix it. Can you please try it again? If the problem happens again, please take a screenshot of your browser console and send it to us so we can check if there's a looping javascript error.

    Also, this is the very least, but is it possible that the middle mouse button has been clicked which turned into a scroll controller?

  • Profile Image
    cliniqueveterinairemirabel
    Answered on August 02, 2018 at 04:51 PM

    No, what I did to observe this bug was to drag and drop an existing field, like to re-order one of them.  I dragged it higher than the page canvas and it began to scroll.  When I released the mouse button to drop the field, it never stopped scrolling.  I did not use the middle mouse button.

    I think the bug is caused by releasing the left mouse button while the page is scrolling and releasing it onto a DOM element where the event does not bubble up to Jotform's function to tell the BODY to stop scrolling.

    Maybe one way that you could mitigate this race condition would be to "poll" for the mouse being clicked or not once every second or something like that.  If you are scrolling but then on the next "poll" you see that the mouse is not clicked anymore, then you should trigger the event that somehow was ignored.  Or better yet, find out why releasing the mouse button over a certain part of the HTML document does not trigger the event to stop scrolling, but that might need very long testing sessions, indeed.

     

  • Profile Image
    EltonCris
    Answered on August 02, 2018 at 05:31 PM

    I tried it several times based on your description, I still couldn't reproduce it.

    Chrome:

    Firefox:

  • Profile Image
    cliniqueveterinairemirabel
    Answered on August 02, 2018 at 06:07 PM

    Yes, that's basically how it happened.  If I manage to reproduce it, I'll carefully log how I did it.  This must only be on rare occasions that it does that.  I'll post here in the future if I reproduce it.  Thanks.

     

  • Profile Image
    Kevin_G
    Answered on August 02, 2018 at 09:29 PM

    You may also try clearing your browsers cache and see if that helps, this link will help you doing so: https://kb.iu.edu/d/ahic 

    If the problem persists, let us know.