HTML Image Link not working properly in android phonegap app -
i developing fm radio streaming app. when user presses in toggle button streaming should stop when clicked again should start.
streaming works fine portion user needs touch not coming on top of toggle icon. coming on top portion of icon. portion have circled , shown in picture.
how create image button simple css , html case
<a href="#" style="position:fixed;top: 1%;left: 5%;" onclick="toggleaudio('http://kantipur-stream.softnep.com:7248');"> <img src="images/toggle.png"> </a>
i'd recommend using touchststart, or touchend, event instead of click events, (except in recent mobile chrome browsers) have delay. also, i'd rid of link. add event handler image itself.
Comments
Post a Comment