fix mouse hide and show on html5 target