Add an event on scroll bar

Hi

I’ve got 2 questions.

  1. It’s possible add an event to vertical scroll bar of a datatable? I tried this code, but it doesn’t work

$$(ID_tabla)._y_scroll.attachEvent(“click”, function(){
webix.message(“click”);
});

  1. It’s possible that this event could be a tipical onmouseup HTML event? I said, this fires when release button of a mouse.

Thanks very much, and regards

If you need to catch the scrolling itself - you can use onScrollY and onScrollX events
http://docs.webix.com/api__ui.datatable_onscrolly_event.html

As for native html events, you can try to use the next

webix.event($$(ID_tabla)._y_scroll.$view, "mouseup", function(e){
  //custom code
});

Beware that _y_scroll is a private property, it will not be accessible with compressed version of webix.js