Fix binary search infinite loop, and clean up mouse evnt dispatching.
Merge branch 'master' of github.com:dabbler0/ice_editor_canvas

* 'master' of github.com:dabbler0/ice_editor_canvas:
  Fix binary search infinite loop, and clean up mouse evnt dispatching.
Latest.