Skip to content

Commit

Permalink
Fix for iOS links
Browse files Browse the repository at this point in the history
  • Loading branch information
floogulinc committed Nov 14, 2024
1 parent f684f7b commit 6562b20
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/app/image-list/image-list.component.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,9 @@
<ul class="mdc-image-list browse-image-list" #container>
@for (file of scroll.viewPortItems; track file.file_id) {
<li class="mdc-image-list__item grid-item">
<a [href]="file.file_url"
<a
class="image-list-link"
[href]="file.file_url"
(click)="fileClick($event, file)"
[appMatContextMenuTriggerFor]="fileMenu"
[matMenuTriggerData]="{file}"
Expand Down
5 changes: 5 additions & 0 deletions src/app/image-list/image-list.component.scss
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,8 @@
.grid-item > a {
-webkit-tap-highlight-color: transparent;
}

.image-list-link {
user-select: none; /* disable selection/Copy of UIWebView */
-webkit-touch-callout: none; /* disable the IOS popup when long-press on a link */
}

0 comments on commit 6562b20

Please sign in to comment.