Appolica / InteractiveInfoWindowAndroid

Library project, developed and maintained by Appolica, offering an interactive info window for Google maps on Android.
249 stars 56 forks source link

Scrollcontainer inside the info window && hideOnFling #21

Closed maxim-petlyuk closed 7 years ago

maxim-petlyuk commented 7 years ago

When we have the scroll container inside the info window view, then the callback of the GestureDetector.onFling will hide the info window after the attempt to scroll content inside the info window view.

deangenovski commented 7 years ago

We are aware of the problem.

@bkolarov-appolica Was the version with the fix for the above problem released ? Or is it just merged in develop ?

deangenovski commented 7 years ago

It looks like it hasn't been released, yet. Will release it as soon as we can. Meanwhile you can check the develop branch, it should be ok there.

maxim-petlyuk commented 7 years ago

Thanks for the quick answer. I research the develop branch and seems to me there is no fix there. If I am not wrong, GestureDetector.onFling should check if the action_down event inside the info window container - then callback should return false.

deangenovski commented 7 years ago

DisallowInterceptLayout - Every info window is wrapped with that layout. It prevents the parent from intercepting the touch events that are inside the info window.

maxim-petlyuk commented 7 years ago

Great and clear job! Thank you for your time and help! Nice and helpful solution.

deangenovski commented 7 years ago

We will let you know as soon as we release the new version, so that you can use the gradle dependency directly :)

If you like our work, please give us a star :)

maxim-petlyuk commented 7 years ago

If you like our work, please give us a star :)

Sure :) Already done :)

rokn commented 7 years ago

The fix is released now