Skip to content

Track Distance - Unable to Drag and drop any stop in the Expense #91903

Closed

Description

@applause-bot

If you haven’t already, check out our contributing guidelines for onboarding and email contributors@expensify.com to request to join our Slack channel!


Version Number: 9.3.84-0
Reproducible in staging?: Yes
Reproducible in production?: No
If this was caught during regression testing, add the test name, ID and link from BrowserStack: https://test-management.browserstack.com/projects/2219752/folder/13176744/test-cases/41237146
Email or phone of affected tester (no customers): applausetester+fish052726fish@applause.expensifail.com
Issue reported by: Applause Internal Team
Bug source: Regression TC Execution
Device used: iOS
App Component: Money Requests

Action Performed:

  1. Launch app as account that is part of a workspace
  2. Click on FAB
  3. Click on the "Track Distance" > "Map"
  4. Click on "Start" > Enter a destination - E,g "45n N Beach Rd, FL"
  5. Enter the "Finish" address - e.g "Beach Access Path, Sunny Isles Beach, FL"
  6. Click on "Add Stop" > Enter "Pembroke Pines, FL, USA"
  7. Drag and drop the middle stop to make it the finish location

Expected Result:

The middle stop should be make it the finish location.

Actual Result:

Track Distance - Unable to Drag and drop any stop in the Expense.
Issue occurred for any stop from expense.

Workaround:

Unknown

Platforms:

  • Android: App
  • Android: mWeb Chrome
  • iOS: App
  • iOS: mWeb Safari
  • iOS: mWeb Chrome
  • Windows: Chrome
  • MacOS: Chrome Safari

Screenshots/Videos

Bug7164583_1779909348831.ScreenRecording_05-27-2026_15-07-03_1.mp4

View all open jobs on GitHub

Applause Internal Information
Exported by: Mita Rachim
Bug ID: 7164583

Activity

  1. added
    DeployBlockerCash
    Bug
    on May 27, 2026
  2. applause-bot commented on May 27, 2026

    @applause-bot
    Author

    While Applause doesn't embed attachments for this bug, here are the links for quick view:
    https://platform.applause.com/services/links/v1/external/cb6a904f31d7caf5b90d2268e11282c6f5b6e4c5dfe89ba457fe04deb6604e54

  3. melvin-bot commented on May 27, 2026

    @melvin-bot

    Triggered auto assignment to @nkuoch (DeployBlockerCash), see https://stackoverflowteams.com/c/expensify/questions/9980/ for more details.

  4. melvin-bot commented on May 27, 2026

    @melvin-bot

    💬 A slack conversation has been started in #expensify-open-source

  5. github-actions commented on May 27, 2026

    @github-actions
    Contributor

    👋 Friendly reminder that deploy blockers are time-sensitive ⏱ issues! Check out the open `StagingDeployCash` deploy checklist to see the list of PRs included in this release, then work quickly to do one of the following:

    1. Identify the pull request that introduced this issue and revert it.
    2. Find someone who can quickly fix the issue.
    3. Fix the issue yourself.
  6. MelvinBot commented on May 27, 2026

    @MelvinBot
    Contributor

    Proposal

    What is the root cause of that problem?

    No JavaScript code in the drag-and-drop chain was modified between production (9.3.83-3) and staging (9.3.84-0). The drag mechanism flows: PressableWithSecondaryInteraction maps onSecondaryInteraction to onLongPress on iOS → long-press fires the drag() callback from react-native-draggable-flatlist → DraggableList delegates to DraggableFlatList which uses GestureDetector (pan gesture) for reordering. All components in this chain are byte-identical between the two versions.

    The two candidate changes that could cause this iOS-only regression are:

    1. React Native deadlock fix patch (react-native+0.83.1+037+fix-deadlock-APP-7B2.patch) — Moves a unique_lock in Fabric's ComponentDescriptorRegistry::add() to after descriptor construction. This introduces a window where the component registry can be read while a new descriptor is being constructed but not yet inserted. If a gesture-handler component descriptor (e.g. RNGestureHandlerButton) is lazily registered and the gesture setup reads the registry before insertion completes, gesture recognition could silently fail.

    2. Mobile-Expensify submodule update (f4cb930c292 → 4205783c3b2) — iOS builds originate from Mobile-Expensify. Any changes to iOS build configuration, Podfile, or native modules in the submodule could directly affect gesture handling. This is opaque from the App repo side.

    No other changes between the versions touch gesture handling, drag-and-drop, Pressable components, or the distance/waypoint flow.

    What changes do you think we should make in order to solve the problem?

    To identify the exact cause:

    1. Inspect the Mobile-Expensify submodule diff between f4cb930c292 and 4205783c3b2 for any iOS-specific changes (Podfile, native modules, build settings).
    2. Test reverting the deadlock fix patch (037) on a staging build to see if drag-and-drop is restored.
    3. Add diagnostic logging in PressableWithSecondaryInteraction/index.native.tsx:53 to determine whether onLongPress fires at all — this will isolate whether the break is in the touch/press system (Pressability) or in the gesture-handler pan tracking.
    4. Verify on Android staging — if Android works, it confirms the issue is iOS Fabric-specific (pointing to the deadlock patch or submodule).

    What alternative solutions did you explore? (Optional)

    Investigated and ruled out:

    • FullStory babel plugin — Same version (^1.6.4) in both production and staging
    • Dependency version changes — package-lock.json shows no version changes for react-native-gesture-handler, react-native-draggable-flatlist, or react-native-reanimated
    • JS code changes — Exhaustive diff confirms zero changes to any file in the drag chain (DraggableList, DistanceMapTabContent, DistanceRequestRenderItem, PressableWithSecondaryInteraction, MenuItem)
    Investigation details

    Drag mechanism (unchanged between versions):

    Changes between 9.3.83-3 and 9.3.84-0 (78 commits):

    • React Native deadlock fix patch (iOS Fabric ComponentDescriptorRegistry mutex reorder)
    • Victory-native horizontal bars patch
    • Mobile-Expensify submodule update
    • Vendor matching, odometer receipt, transaction list perf, PopoverMenu dividers, MoneyRequestHeader duplicate banner fixes
    • None touch the drag/gesture chain

    Existing Pressability patch (035, present in BOTH versions):
    A pre-existing patch at react-native+0.83.1+035+fix-pressability-new-arch.patch modifies Pressability._measure for Fabric. While not the regression cause (present in both versions), it represents a fragility point that could interact with the deadlock fix patch.


    Next Steps for Contributor+ team: Reply with @MelvinBot implement this to create a draft PR, @MelvinBot <your feedback> to refine this analysis, or explain why you are rejecting Melvin's proposal.

  7. added
    Reviewing
    on May 28, 2026
  8. IuliiaHerets commented on May 28, 2026

    @IuliiaHerets

    Reproduced on iPhone 12/iOS 26.5/Build 9.3.84-1

    f2f056ae-b0df-49f4-b010-b8fcd63eddef.mp4
  9. IuliiaHerets commented on May 28, 2026

    @IuliiaHerets

    issue still reproducible using build 88-0

    ScreenRecording_05-28-2026.21-04-03_1.MP4
  10. added
    Daily
    and removed
    DeployBlockerCash
    Hourly
    on May 28, 2026
  11. mountiny commented on May 28, 2026

    @mountiny
    Contributor

    Fixed in 88-2

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

BugDailyEngineeringReviewing

Type

No type

Projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions