While testing the D6 version in Google Chrome, I found that after every drag, the page scrolls to the top. Very annoying. However I couldn't find a problem with the code, it seems to be triggered by these lines:

  // Scroll the palette into view.
  $(window).scroll();

There are two places where this code is called (after dropping a field and after stopping any drag).

This problem only appears in Chrome but in both versions of Form Builder. Looks like there is a bug in Chrome that causes this behavior:

http://code.google.com/p/chromium/issues/detail?id=113962

Not sure if we should work around it for now or wait for Chrome to fix it.

Comments

quicksketch’s picture

Status: Active » Fixed

This patch solves the problem by using jQuery's triggerHandler event, which just calls jQuery handlers but not the native browser implementation. Since calling window.scroll() with no parameters isn't proper JS anyway, this definitely seems like a good fix to have in place. Committed to both branches.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.