iOS buttons sometimes don't trigger the click function


#1

Hi all,

I have a problem with my iOS app.
The small ionic-buttons work perfectly on Android and Web, but on iOS they work like 50% of the time.
It feels a bit laggy, because sometimes I hit a button once and the click fires, other times it fires after a second or third time.

I am using Cordova ios 4.5.3, but I also had this on 4.4.0 and 4.5.0
ionic-cli v 3.19 and ionic-angular v3.9.2
When I make my buttons bigger it looks very ugly inside the app. Is there anything I can do to change this behaviour on iOS?

It happens on all buttons, also the ionic included back button…
Or for example on these buttons:

 <ion-item ion-item detail-none *ngIf="!vsCPU">
<button item-right class="trashbutton" color="danger" *ngIf="amountOfPlayers > 1" (click)="RemoveTeam(team)" ion-button icon-only>
                            <ion-icon ios="ios-trash-outline" md="md-trash"></ion-icon>
                        </button>
</ion-item>

Thanks in advance!


#2

try using (tap) instead, might help


#3

I tried, but that doesn’t make a difference. It turned out that the buttons on iOS just were too small, sometimes you’re convinced that you’ve clicked at the right place, but when I made the buttons bigger, everything worked fine.

It’s weird because the smaller buttons worked perfectly on Android…