Open alonbardavid opened 9 years ago
In general I think that this should be something that the caller should handle. What if the user wants to keep the focus on something else when initiating the pad? or doesn't want the "keyboard" to be hidden (which is the reason given in the source code for this action).
Yeah, that makes sense to me.
in the function initDrawEvents there is a call to $('input').blur(). Which causes every input to get a "blur" event.
If there are many inputs and the blur event is heavy there this can cause a very long delay until drawing can happen.
This happened to me with a very large angular application, which in ever blur causes a "digest cycle" (a way for angular to test if there are any changes).