Acknowledged
CIQQA-3113

bug: swipe right on the left side of the screen triggers onKey(KEY_ESC)

I noticed this with my app in simulator (fr955, SDK 8.1.1), and then I checked it with the Input sample and it also reproduces it, so it's clearly a bug both in the simulator and even on real devices (tested on real fr965). A similar bug was already reported 4 years ago: https://forums.garmin.com/developer/connect-iq/i/bug-reports/vivoactive-4s-swipe-identified-as-a-key-pressed

To reproduce:

- run the Input sample from the SDK on fr955 in the simulator.

- swipe right in a way that you touch in the middle or the right side of the screen => correctly, only swipe event is triggered

- swipe right touching in the left side of the screen => onKey(KEY_ESC) is triggered (It's not clear when this happens, in the Input sample it looks like sometimes this only happens every 2nd time you swipe on the left side of the screen)

Parents
  • B] Swipe right [starting from anywhere but the left side] triggers onBack [bad]

    I just tested with the latest beta fr955 firnware (24.07) [*], and this issue has been resolved. In other words, swiping right from anywhere other than the left edge does *not* trigger onBack() or onKey(KEY_ESC), but only onSwipe(SWIPE_RIGHT), which is good behaviour that matches the native UI. It means a CIQ app can use a right swipe (not from left edge) to do an action like panning a chart, while using right swipe from left edge to pop the current view / close the app (as usual).

    [*] I haven't tested this behaviour in a while, so it could've been fixed much earlier.

    A] Swipe right [starting from the left side] triggers both onBack[] [good] and KEY_ESC [bad!]

    This issue still exists, which is unsurprising as Garmin mentioned it's by design.

Comment
  • B] Swipe right [starting from anywhere but the left side] triggers onBack [bad]

    I just tested with the latest beta fr955 firnware (24.07) [*], and this issue has been resolved. In other words, swiping right from anywhere other than the left edge does *not* trigger onBack() or onKey(KEY_ESC), but only onSwipe(SWIPE_RIGHT), which is good behaviour that matches the native UI. It means a CIQ app can use a right swipe (not from left edge) to do an action like panning a chart, while using right swipe from left edge to pop the current view / close the app (as usual).

    [*] I haven't tested this behaviour in a while, so it could've been fixed much earlier.

    A] Swipe right [starting from the left side] triggers both onBack[] [good] and KEY_ESC [bad!]

    This issue still exists, which is unsurprising as Garmin mentioned it's by design.

Children