T Tomas Petrus Active Member Licensed User Longtime User Apr 9, 2019 #1 Hi guys, I am transforming my app from Android to iOS Aiming to both of the apps to look as same as posible. To achieve that I need to use autocomplete inside other panel but some other click events are then stealing my clicks so I cant select anything from the suggested list because the click is stolen by Click event on the parent panel or on the page... You can see it in example
Hi guys, I am transforming my app from Android to iOS Aiming to both of the apps to look as same as posible. To achieve that I need to use autocomplete inside other panel but some other click events are then stealing my clicks so I cant select anything from the suggested list because the click is stolen by Click event on the parent panel or on the page... You can see it in example
T Tomas Petrus Active Member Licensed User Longtime User Apr 9, 2019 #2 and the code Attachments ClickStealer.zip ClickStealer.zip 11.5 KB · Views: 384 Upvote 0
T Tomas Petrus Active Member Licensed User Longtime User Apr 9, 2019 #3 Now if you try to select anything from the list. Your click is stealed by ClickThief and the event is loged : ) Upvote 0
Now if you try to select anything from the list. Your click is stealed by ClickThief and the event is loged : )
Erel B4X founder Staff member Licensed User Longtime User Apr 9, 2019 #4 I see it too. This is related to TableView behavior where it doesn't immediately treat the touch gesture as a selection. When that happens the panel underneath it "steals" the event and consumes it. Upvote 0
I see it too. This is related to TableView behavior where it doesn't immediately treat the touch gesture as a selection. When that happens the panel underneath it "steals" the event and consumes it.
T Tomas Petrus Active Member Licensed User Longtime User Apr 9, 2019 #5 and is there any workaround ? Or do I need to redesign ? Like do it as a separate page so I will eliminate the click thieves ? Upvote 0
and is there any workaround ? Or do I need to redesign ? Like do it as a separate page so I will eliminate the click thieves ?
Erel B4X founder Staff member Licensed User Longtime User Apr 9, 2019 #6 What is the use case for handling the click event of the underneath panel? Switch to xCustomListView in both your B4A and B4i projects. You will be able to share more code between the platforms. (I'm not 100% sure that this issue with the underlying touch listener will not affect CLV. You need to test it.) Last edited: Apr 9, 2019 Upvote 0
What is the use case for handling the click event of the underneath panel? Switch to xCustomListView in both your B4A and B4i projects. You will be able to share more code between the platforms. (I'm not 100% sure that this issue with the underlying touch listener will not affect CLV. You need to test it.)
T Tomas Petrus Active Member Licensed User Longtime User Apr 10, 2019 #7 Erel said: What is the use case for handling the click event of the underneath panel? Click to expand... In the real app the underneath panel is just semitransparent gray background visible around the main panel. Under which u still see the form, from which the autocomplete was opened. So when u click outside the main panel with autocomplete the panel hides and u are back where u were : ) Erel said: Switch to xCustomListView in both your B4A and B4i projects. You will be able to share more code between the platforms. (I'm not 100% sure that this issue with the underlying touch listener will not affect CLV. You need to test it.) Click to expand... Ok note taken, will try to use it in future updates. Right now I solved it by disabling the clickThief event and adding cancel button into the PlacesAutocompleteView Class. Not ideal but its timesaver : ) Upvote 0
Erel said: What is the use case for handling the click event of the underneath panel? Click to expand... In the real app the underneath panel is just semitransparent gray background visible around the main panel. Under which u still see the form, from which the autocomplete was opened. So when u click outside the main panel with autocomplete the panel hides and u are back where u were : ) Erel said: Switch to xCustomListView in both your B4A and B4i projects. You will be able to share more code between the platforms. (I'm not 100% sure that this issue with the underlying touch listener will not affect CLV. You need to test it.) Click to expand... Ok note taken, will try to use it in future updates. Right now I solved it by disabling the clickThief event and adding cancel button into the PlacesAutocompleteView Class. Not ideal but its timesaver : )