Skip to content
No new version for more than 90 days, so OpenNavo has paused recommending and installing it. Homebrew still offers this app.

MiddleDrag Release Notes

Use three-finger trackpad gestures for middle-click and middle-drag on macOS 15 or later.

CaskUtilitiesAuto-updates 248

No new version for more than 90 days, so OpenNavo has paused recommending and installing it. Homebrew still offers this app.

Install command
brew install --cask middledrag
30-day installs
46
1-year installs
1.3K
Last 365 days
Latest version
1.4.3
Download size
3.8MB
pkg
Release cadence
Irregular
0 releases in 30 days
  1. 1.4.2.5

    Patch

    OpenNavo editorial Added to Homebrew

    The release evidence provides a SHA-256 checksum; it does not describe product changes.

    Release
    SHA-256 checksum providedNo product changes described

    The official release entry for MiddleDrag 1.4.2.5 provides this SHA-256 checksum: 43bfc9b3a96a02b1dc7ed242b9372f5a87d8d5a60d749496788c6fb06faca847. The entry does not describe product changes.

    Source: https://github.com/NullPointerDepressiveDisorder/MiddleDrag/releases/tag/v1.4.2.5

  2. 1.4.2.4

    Patch

    OpenNavo editorial Added to Homebrew

    Release v1.4.2.4 provides a SHA-256 checksum. The release notes do not describe other changes.

    Release
    SHA-256 checksum publishedNo other changes described

    MiddleDrag v1.4.2.4 was published with this SHA-256 checksum:

    d69f354697db573f5dfb552dc7b2e23282bc727d2928e9dd3960e5f27532afbc

    The release evidence does not describe any other changes.

    Source: https://github.com/NullPointerDepressiveDisorder/MiddleDrag/releases/tag/v1.4.2.4

  3. 1.4.2

    Expand

    GitHub Release Added to Homebrew


    SHA256: d1b3e3a2ffd5fec31571bd1455a75210946d23622656e82654bfd6929c328943

    BROKEN: VERSION HAS A BREAKING BUG, PLEASE SKIP OVER

    What's Changed

    Full Changelog: https://github.com/NullPointerDepressiveDisorder/MiddleDrag/compare/v1.4.1.4...v1.4.2

    [Image: Download MiddleDrag](https://sourceforge.net/projects/middledrag.mirror/files/v1.4.2/MiddleDrag-1.4.2.pkg/download)

  4. 1.4.1.4

    Expand

    GitHub Release Added to Homebrew

    Bug/double tab (#99)

    • Fix: Prevent double middle-clicks during multitouch gestures

    • Fix: Prevent double middle-clicks by skipping gesture tracking check

    • Fix: Implement click deduplication to prevent double middle-clicks from multiple sources

    • Fix: Implement force-click deduplication to prevent double middle-clicks from trackpad gestures

    • Fix: Enhance click deduplication with internal click count and reset functionality

    • Fix: Implement thread-safe access for lastForceClickTime to enhance click deduplication


    SHA256: 8b1cbfef8190e4fe60a97e719222b9c42081101e4018c9e4a939f870c3f6db17

    [Image: Download MiddleDrag](https://sourceforge.net/projects/middledrag.mirror/files/v1.4.1.4/MiddleDrag-1.4.1.4.pkg/download)

  5. 1.4.1.2

    Expand

    GitHub Release Added to Homebrew

    Fix/use after free (#93)

    • Fix use-after-free issue by copying touch data synchronously in DeviceMonitorDelegate

    • Fix race conditions in restart handling by ensuring thread-safe access to restart state and work items

    • Ensure thread safety in UI animations by using MainActor in MenuBarController

    • Improve touch processing in MultitouchManager to handle zero touches and ensure gesture recognizer stability


    SHA256: d4c2c5fecdc2419954491edde356c2fd19281ee2c08e668ed8b05385dc532436

    [Image: Download MiddleDrag](https://sourceforge.net/projects/middledrag.mirror/files/v1.4.1.2/MiddleDrag-1.4.1.2.pkg/download)

  6. 1.4.1

    Expand

    GitHub Release


    SHA256: 4cd61eef7d49039a9d0fce62233cbcb96b0fe17e7d35868a82050ad3c37ae902

    What's Changed

    Full Changelog: https://github.com/NullPointerDepressiveDisorder/MiddleDrag/compare/v1.4.0...v1.4.1

    [Image: Download MiddleDrag](https://sourceforge.net/projects/middledrag.mirror/files/v1.4.1/MiddleDrag-1.4.1.pkg/download)

  7. 1.3.8.8

    Expand

    GitHub Release

    What's Changed

    Full Changelog: https://github.com/NullPointerDepressiveDisorder/MiddleDrag/compare/v1.3.8.7...v1.3.8.8

  8. 1.3.8.7

    Expand

    GitHub Release

    Enhance mouse event handling and logging for improved drag performance (#69)

    • Enhance mouse event handling and logging for improved drag performance
    • Updated the MouseEventGenerator to track the last sent mouse position, preventing jumps from stale positions during drag operations.
    • Implemented smoothing for mouse movement updates, allowing for more consistent and responsive drag actions.
    • Enhanced logging to detect and report potential snap-back issues during horizontal drag movements, integrating with Sentry for telemetry.
    • Modified AppDelegate to include session ID in startup logs for better tracking.
    • Improved MultitouchManager to ensure proper handling of force clicks and drag states, preventing interference during active drags.
    • Added setup and teardown methods in AnalyticsManagerTests to isolate test cases and ensure consistent state.
    • Refactor mouse event handling to improve thread safety and logging
    • Updated MouseEventGenerator to read the current mouse position before acquiring a lock, enhancing thread safety during drag operations.
    • Simplified telemetry logging by consolidating the guard statement, ensuring logs are only sent when telemetry is enabled.
    • Retained the sendRelativeMouseMove function for potential future use while clarifying its purpose in comments.

    SHA256: 04df585d0a712fa1979014d4f2ffb86702fdd54736c443e5c47a0303b46ea562

  9. 1.3.8.4

    Expand

    GitHub Release

    Bug/62 windows are a bit sticky (#64)

    • Enhance gesture handling in MultitouchManager
    • Introduced a new property to track if the last gesture was active, improving event suppression logic.
    • Updated gesture state management to ensure accurate suppression of events based on the last gesture's activity.
    • Refactored gesture active checks to incorporate modifier key requirements, ensuring only valid gestures are considered active.
    • Adjusted related logic in gesture recognizer delegate methods to maintain consistency in gesture state updates.
    • Add tests for modifier key event suppression in MultitouchManager
    • Implemented multiple test cases to verify the behavior of event suppression based on modifier key states during gesture recognition.
    • Added tests to ensure events are correctly processed or suppressed when modifier keys are held or released during active gestures.
    • Included checks for the expiration of the event suppression window after gesture completion.
    • Enhanced coverage for scenarios involving active and cancelled gestures, ensuring robust handling of event processing logic.
    • Refactor MultitouchManager to enhance force click support and remove modifier key tests
    • Updated the logic to convert left clicks to middle clicks based on the raw finger count during 3-finger gestures, improving force click functionality.
    • Removed tests related to modifier key event suppression due to difficulties in mocking CGEventSource.flagsState, with assurance that this behavior is covered through integration testing.

    SHA256: 6015b5f8ab490e9cf833cfbf4e5c8705aa85e700da6dd661efe3fcb539b3c7c6

  10. 1.3.8.3

    Expand

    GitHub Release

    57 unwanted termination (#60)

    • fix: prevent race condition crash during device stop/restart

    Add delays to prevent CFRelease(NULL) crashes caused by concurrent device operations between main thread and MultitouchSupport framework's internal thread (mt_ThreadedMTEntry).

    Root cause: When waking from sleep, restart() calls stop() on the main thread while the framework's internal thread may still be processing callbacks. This race condition causes the framework to access deallocated resources.

    Changes:

    • DeviceMonitor.stop(): Separate callback unregistration from device stopping with frameworkCleanupDelay (50ms) between them. This allows the framework's internal thread to see unregistered callbacks before we stop devices.
    • MultitouchManager.restart(): Use async DispatchQueue.main.asyncAfter with restartCleanupDelay (100ms) instead of blocking Thread.sleep. This prevents UI freeze during wake-from-sleep while ensuring the framework has time to complete cleanup.

    Named constants with documentation added for both delay values to improve maintainability.

    Fixes #57

    • test: add coverage for race condition prevention

    Add 10 new tests to verify the race condition fix:

    DeviceMonitorTests (5 tests):

    • testStopIncludesDelayForFrameworkCleanup: Verify delay exists
    • testRapidStartStopCyclesDoNotCrash: Rapid start/stop cycles
    • testStopSeparatesCallbackUnregistrationFromDeviceStop: Two-phase stop
    • testConcurrentStopDoesNotCrash: Concurrent access during stop
    • testFrameworkCleanupDelayConstantExists: Verify constant is defined

    MultitouchManagerTests (5 tests):

    • testRestartUsesAsyncDelayForFrameworkCleanup: Verify async non-blocking
    • testRestartCleanupDelayConstantExists: Verify constant is defined
    • testRapidRestartCyclesDoNotCrash: Rapid restart cycles (wake scenarios)
    • testRestartDuringActiveGestureDoesNotCrash: Restart during drag
    • testRestartFromBackgroundThreadDoesNotCrash: Background thread restart

    Updated existing restart tests to wait for async completion.

    • fix(test): Skip cleanup delay check in DeviceMonitorTests when no device found

    • fix(core): Debounce MultitouchManager restarts and fix stop() race condition

    This fixes a race condition where specific timing of stop() during the async restart delay would fail to prevent the restart. It also debounces rapid restart calls to prevent multiple DeviceMonitor instances.

    SHA256: 5d8cc073bf99c09cc47c072217c2d2ae78ffdafaf76c5093cebc105b3ebacff2

  11. 1.3.8.1

    Expand

    GitHub Release


    SHA256: 97e8bbe060588d836127dbda83d112aa7d1be7c20cb909a184fbcf4e6dd6adef

    What's Changed

    Full Changelog: https://github.com/NullPointerDepressiveDisorder/MiddleDrag/compare/v1.3.8...v1.3.8.1

  12. 1.3.8

    Expand

    GitHub Release

    Increase timeout for grant expectation in tests

    Signed-off-by: Karan Mohindroo [email protected]

    SHA256: 8561c8d7fd15ca1f67da7517dcf7913ac7cb766b713b407c8029b3ca46d0e28e

    What's Changed

    Full Changelog: https://github.com/NullPointerDepressiveDisorder/MiddleDrag/compare/v1.3.7...v1.3.8

  13. 1.3.7

    Expand

    GitHub Release

    feat: Add system gesture configuration to prevent conflicts (#47)

    • feat: Add system gesture configuration to prevent conflicts
    • Add SystemGestureHelper utility to detect and configure macOS trackpad settings
    • Replace non-functional 'Block System Gestures' toggle with 'Configure System Gestures...' action
    • Add dialogs to explain conflicts and offer automatic configuration
    • Automatically switch 3-finger gestures to 4-finger for Mission Control/Spaces
    • Apply changes via 'defaults write' and restart Dock

    The previous blockSystemGestures setting was a placeholder that did nothing. This implementation actually helps users configure their system to avoid conflicts with MiddleDrag's 3-finger gestures.

    • refactor(SystemGestureHelper): add dependency injection for testability
    • Add TrackpadSettingsProvider and ProcessRunner protocols
    • Create default implementations using UserDefaults and Process
    • Update methods to use injectable dependencies
    • Add 36 comprehensive tests with mock providers
    • refactor(AlertHelper): add dependency injection for testability
    • Add AlertPresenter protocol for modal and URL handling
    • Create DefaultAlertPresenter using NSAlert and NSWorkspace
    • Split show* methods into createAlert (testable) + show (presents)
    • Add URL constants for GitHub and trackpad settings
    • Expand AlertHelperTests with 34 mock-based tests
    • test(MenuBarController): add missing toggle action tests
    • Add testToggleAllowReliftDuringDragViaSelector
    • Add testToggleAllowReliftDuringDragPostsNotification
    • Add testBuildMenuWithAllowReliftEnabled
    • Add testConfigureSystemGesturesMethodExists
    • Add testAllPreferenceTogglesInSequence for comprehensive coverage
    • chore: add SystemGestureHelperTests to project exceptions

    Exclude new test file from main target compilation

    • fix: address Copilot review feedback
    • Update 'Block System Gestures' references to 'Configure System Gestures...'
    • Add describeConflictingSettings() for 3-finger gestures only
    • Use describeConflictingSettings in configuration prompt alert
    • Add 6 new tests for describeConflictingSettings

    SHA256: bfce74f9072162db1c9ac44cfe924ed7d7067e3a6b8ec300f98e24aaddf34901

    feat: Add system gesture configuration to prevent conflicts (#47)

    • feat: Add system gesture configuration to prevent conflicts
    • Add SystemGestureHelper utility to detect and configure macOS trackpad settings
    • Replace non-functional 'Block System Gestures' toggle with 'Configure System Gestures...' action
    • Add dialogs to explain conflicts and offer automatic configuration
    • Automatically switch 3-finger gestures to 4-finger for Mission Control/Spaces
    • Apply changes via 'defaults write' and restart Dock

    The previous blockSystemGestures setting was a placeholder that did nothing. This implementation actually helps users configure their system to avoid conflicts with MiddleDrag's 3-finger gestures.

    • refactor(SystemGestureHelper): add dependency injection for testability
    • Add TrackpadSettingsProvider and ProcessRunner protocols
    • Create default implementations using UserDefaults and Process
    • Update methods to use injectable dependencies
    • Add 36 comprehensive tests with mock providers
    • refactor(AlertHelper): add dependency injection for testability
    • Add AlertPresenter protocol for modal and URL handling
    • Create DefaultAlertPresenter using NSAlert and NSWorkspace
    • Split show* methods into createAlert (testable) + show (presents)
    • Add URL constants for GitHub and trackpad settings
    • Expand AlertHelperTests with 34 mock-based tests
    • test(MenuBarController): add missing toggle action tests
    • Add testToggleAllowReliftDuringDragViaSelector
    • Add testToggleAllowReliftDuringDragPostsNotification
    • Add testBuildMenuWithAllowReliftEnabled
    • Add testConfigureSystemGesturesMethodExists
    • Add testAllPreferenceTogglesInSequence for comprehensive coverage
    • chore: add SystemGestureHelperTests to project exceptions

    Exclude new test file from main target compilation

    • fix: address Copilot review feedback
    • Update 'Block System Gestures' references to 'Configure System Gestures...'
    • Add describeConflictingSettings() for 3-finger gestures only
    • Use describeConflictingSettings in configuration prompt alert
    • Add 6 new tests for describeConflictingSettings

    SHA256: dea085a41c7c4767a77801a258f43f9d017a121b4b2862811785fbfc164f608b