lundi 22 juin 2015

keep calling a function on mouseDown in ember

I need to keep calling a function on mouse down and I have following code:

<button id="zoomin" type="button" {{action "zoomIn" on="mouseDown" target="view"}} class="btn">
        <i class="icon-zoom-in"></i>
      </button>

But it is only called when mouse is down and I want it to be called repeatedly until mouse is down.

Is there any solution other than timer?




Aucun commentaire:

Enregistrer un commentaire