opengisch / QField

A simplified touch optimized interface for QGIS
http://www.qfield.org
GNU General Public License v2.0
843 stars 229 forks source link

To avoid interference with snapping results when creating features using a mouse/stylus, do not reset coordinate cursor when rubber band is frozen #5808

Closed nirvn closed 1 week ago

nirvn commented 1 week ago

This PR fixes https://github.com/opengisch/QField/issues/5661 . Long story short, when we digitize a new geometry using a mouse or stylus and we hit confirm, we would often lose snapped feature information as the coordinate cursor would reset to the screen center prior to the feature form having calculated its default value. By resetting onto the middle of the screen, any snapped feature context would be lost.

It isn't really a problem when people uses fingers to interface with the interface since the cursor always stays in the middle of the screen.

qfield-fairy commented 1 week ago

🎉 Ta-daaa, freshly created APKs are available for 209bd331a27628dfa7a8b6e81aea639479a1aa29: arm64-android

Other architectures - [arm-neon-android](https://qfieldapks.sos-ch-dk-2.exoscale-cdn.com/ci-builds/qfield-dev-5808-9655e8418c323cc06fc5fff3c1a82c18b5779b09-android-arm-neon.apk) - [x64-android](https://qfieldapks.sos-ch-dk-2.exoscale-cdn.com/ci-builds/qfield-dev-5808-9655e8418c323cc06fc5fff3c1a82c18b5779b09-android-x64.apk) - [x86-android](https://qfieldapks.sos-ch-dk-2.exoscale-cdn.com/ci-builds/qfield-dev-5808-9655e8418c323cc06fc5fff3c1a82c18b5779b09-android-x86.apk) - [**all access arm64-android**](https://qfieldapks.sos-ch-dk-2.exoscale-cdn.com/ci-builds/qfield_all_access-dev-5808-9655e8418c323cc06fc5fff3c1a82c18b5779b09-android-arm64.apk) - [all access arm-neon-android](https://qfieldapks.sos-ch-dk-2.exoscale-cdn.com/ci-builds/qfield_all_access-dev-5808-9655e8418c323cc06fc5fff3c1a82c18b5779b09-android-arm-neon.apk) - [all access x64-android](https://qfieldapks.sos-ch-dk-2.exoscale-cdn.com/ci-builds/qfield_all_access-dev-5808-9655e8418c323cc06fc5fff3c1a82c18b5779b09-android-x64.apk) - [all access x86-android](https://qfieldapks.sos-ch-dk-2.exoscale-cdn.com/ci-builds/qfield_all_access-dev-5808-9655e8418c323cc06fc5fff3c1a82c18b5779b09-android-x86.apk)