Yeah, if it turns out this is a deliberate change and not a bug I will try the MobileCanvas trick. I’ve had to do similar stuff to make maps clickable.
Maybe they made this change deliberately so that you could have better control over what is clicked?
I guess that’s what I’m trying to figure out: was this a deliberate change to give fine-tuned control, or a bug that’s going to be fixed in the future?
Since a recent update of Xojo, MobileImageViewer has a Pressed event.
The problem is that the underlying code for the Pressed event is set up even if the Pressed event isn’t used in code.
You might be able to get the old behavior with the following declare
Declare sub disableInteraction Lib "Foundation" selector "setUserInteractionEnabled:" (obj as ptr, value as boolean)
disableInteraction(theMobileImageViewer.handle, True)
Declare sub UserInteraction Lib "Foundation" selector "setUserInteractionEnabled:" (obj as ptr, value as boolean)
UserInteraction(theMobileImageViewer.handle, False)
In case anyone want a method you can drop in a module and then call .fixPictureClick() on your MobileImageViewer, here’s one:
Public Sub fixPictureClick(extends myImage as MobileImageViewer)
Declare sub UserInteraction Lib “Foundation” selector “setUserInteractionEnabled:” (obj as ptr, value as boolean)
UserInteraction(myImage.handle, False)
End Sub