koken / issues

Public issue tracker for Koken http://koken.me
8 stars 0 forks source link

Cart "hijacks" touch event on images making it impossible to open them up in lightbox on iOS #28

Open BlackSkorpio opened 8 years ago

BlackSkorpio commented 8 years ago

When a img is made purchasable it's no longer possible to open that img up in lightbox (or click to content.lens) when visiting with an iOS device. (Tested on iPhone running iOS 7.0.4 and iPad Mini running 9.3.3) On android it works as expected

Can be seen on: https://varoystrand.se/album/summer/

MikeCostello commented 8 years ago

Can confirm the Cart plugin rewrites anchors that have the purchase button nested within. This in order prevent the link's context taking precedence over the checkout functionality. If it's determined that the click did not originate from the cart button then the link is temporarily restored. This works so far in the current batch of Koken themes.

In this custom theme case it looks like the nested <div class="imagetitle"> element blocks the click from bubbling up the chain to Document where the listener for the above functionality lives. When I remove that element Lightbox begins to work in Mobile Safari.

Will continue to look for a work around, but wanted to provide some initial feedback.

BlackSkorpio commented 8 years ago

Thank you, I have come to the same conclusion: and have a temp solution to distribute to those running OxyGen until we can come with solid solution. :smile: