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> 

enter image description here

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

Popular posts from this blog

rest - Spring boot: Request method 'PUT' not supported -

php - Magento - Deleted Base url key -

symfony - imagine_filter() not generating the correct url in LiipImagineBundle -