added dynamic height support

Added support for dynamic heights by updating the canvas on start of a touch or emulated an emulated touch.