breezy-weather / breezy-weather

A Material Design Weather Application

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Prevent horizontal swiping between locations on precipitation nowcasting chart

papjul opened this issue · comments

Add at least 2 locations, one with precipitation nowcasting.

When horizontally swiping to move the marker, it swipes to the next location instead.

It worked on the old chart, so maybe check if something particular was done:
https://github.com/breezy-weather/breezy-weather/tree/v5.1.8

commented

In the old version of the chart there was some logic to intercept touch events:

This effectively prevented the touch event from being propagated to the parent which made it possible to move the marker in the chart.

For the new chart we don't have that anymore, but it's probably just a matter of applying the right modifier to the chart. pointerInteropFilter looks promising.

I'll look into it, but it might take a while.

commented

I found a solution. Just need to fine-tune it a bit.

This problem has been solved, but when I upgraded to version 5.2.0, I can't switch time points by sliding horizontally in the precipitation nowcasting.

  • Device: Honor 6A
  • System: Android 7 Nougat
  • Breezy Weather Version: 5.2.0_armeabi_v7a