Hi all,
I’m developing a basic UI interface where you can zoom a model using a scroll bar.
I Tryed out the ELEMENT SCROLLBAR: I setted up it nicely, using my graphic, but now I did not understand how to catch event when user drag the handle for setting the scale of my model.
Is there some particular event?
I tryed with:
var UiscrollBarZoom = pc.createScript('uiscrollBarZoom');
// initialize code called once per entity
UiscrollBarZoom.prototype.initialize = function() {
this.entity.element.on('change', function (event) {
console.log("CHANGED!");
}, this);
};
// update code called every frame
UiscrollBarZoom.prototype.update = function(dt) {
};
but “change” is never fired when I drag the handle