addHandler/DomEvent/get>Locatuonj performance issue

  • Thread starter Thread starter Sergei Shelukhin
  • Start date Start date
S

Sergei Shelukhin

Hi. We have a performance issue with the keyup handler that is
attached to a textarea control using $addHandler when the page loads.

Every time the user presses a key in textarea, DomEvent object is
built and for some reason getLocation method gets called. This method
is rather slow and typing in this textbox lags considerabley because
of this if you typoe fast enough.

Why would getLocation be called for a keyboard event and how do we
turn it off?
 
Debugging ASP.NET AJAX source showed that it calls getlocation efor
every event that has target, including the keyboard events 0_o.
Looks like we'll have to resort to homebrew handlers for such cases
 
Back
Top