Fastis icon indicating copy to clipboard operation
Fastis copied to clipboard

Click and drag with mouse on Mac Catalyst

Open willm132 opened this issue 7 months ago • 3 comments

Is it possible to allow click to scroll on Mac, it scrolls with the wheel, but some users have a trackpad that need to be able to scroll with mouse.

willm132 avatar May 30 '25 17:05 willm132

I’m using Fastis via Swift Package Manager, and I wanted to customize the internal calendarView (specifically, the underlying UICollectionView) to adjust scroll behavior and gesture handling (e.g., enabling or modifying trackpad/mouse scrolling on Mac Catalyst). Currently, the calendarView property in FastisController is marked as private, which prevents me from configuring things like:

calendarView.collectionView.isScrollEnabled = true
calendarView.collectionView.delaysContentTouches = false

Can we expose calendarView as internal or public, or add a public configuration method so I can do the following:

calendarView.collectionView.isScrollEnabled = true

willm132 avatar Jul 15 '25 19:07 willm132

@UriyDevyataev Are you able to assist with this?

willm132 avatar Sep 08 '25 12:09 willm132

I believe you can just add this to your FastisController.swift file:

public extension FastisController {
    var isCalendarScrollEnabled: Bool {
        get { self.calendarView.isScrollEnabled }
        set { self.calendarView.isScrollEnabled = newValue }
    }
}

willm132 avatar Sep 08 '25 12:09 willm132