colelawrence / Touch-Splitter-jQuery

A high performance html splitter compatible with touch events
14 stars 7 forks source link

Drag Events #14

Open kevzlou7979 opened 6 years ago

kevzlou7979 commented 6 years ago

Is there any dragging events on the Splitter?

I tried to call:

$("#gwt-uid-6")[0].touchSplitter.on("resize", function(e) {
   console.log("resize")
   return true;
});

but nothing is registered into the event registry

colelawrence commented 6 years ago

Hmmm, thanks for asking about this. As I understand this library, there are no events emitted.

I think that this is doable, I'd like to use a different name for the event though so there is a smaller chance of another piece of code regressing as a result. Am I understanding your idea?

I'm also curious how this might affect performance since it seems like it could be expensive to go through the standard dom event emit, rather than an internal onResizeStart(listenerFn)