Acknowledged
CIQQA-3070

Swipe left behavior different between simulator and device

In the simulator, swipe left is usually not associated with any behavior, at least in the devices I have checked from the Fenix 7, Epix 2, Fenix 8 and Venu 3 series.

However on my physical Epix Pro Gen 2 47mm, the swipe left triggers the onNextPage() behavior. This is not in line with the use of swipe left in the native apps, where swipe left is used to call up lower level, detail views, and only swipe up/down are used to switch between pages on the same level.

So, either there is a but on the device, and swipe left should not trigger onNextPage(), or if this is intended (contrary to native app behavior), then there is a bug in the simulator, because there swipe left is not associated with the onNextPage() behavior.

  • Yes, get your point. I guess it would be nice then to get some feedback from the CIQ team about issues like that. In this case, if the bug is in the device or the simulator.

  • I know this is gonna sound like circular reasoning, but thing about the CIQ docs is that they seem to be partly generated from a common "source of truth" along with other things in the CIQ ecosystem (e.g. compiler.json and simulator.json in the device files). So it's rare that the (auto-generated part of the) docs can be "right" while the sim is "wrong".

    e.g. 

    - the function types in the API documentation are the same as the types in the SDK itself, which is a good thing, but I also means that an error in one place will be reflected in the other place

    - the data field layouts in the CIQ device reference doc are the same as those in the device files (simulator.json). The entire CIQ device reference seems to be an intersection of the data in the device files (compiler.json/simulator.json). (Both the reference and the device files have certain information that the other doesn't though.)

    Yeah, there may have been discrepancies in the docs vs. the rest of the SDK in some cases, but in most cases I think they're usually in sync.

    I guess all of that is to say that we usually can't look most of the docs as a "higher source of the truth" than stuff in the sim, since they may have been generated from the same data, unless it's something that a human clearly wrote by hand and/or something that doesn't make sense due to some external criteria or logic (like this bug report in the first place).

  • > Ofc this doesn't really help if the sim is different from the device :/

    Yes, that is the problem here. In the simulator, no device has this association of swipe left with onNextPage. So it would be interesting to know which ones have it in the real world. Memory is always tight, and I would not want to apply the workaround where it is not necessary.

  • > is there any documentation how devices implement certain behaviors? 

    I think the closest thing might where connectiq/devices/[device id]/simulator.json maps keys and touch gestures to behaviours, for each ciq device.

    Ofc this doesn't really help if the sim is different from the device :/

  • @Connect-IQ-Team, is there any documentation how devices implement certain behaviors? Might be nice to have this in the device reference.