Merge "Fix crash from isTrackpadDevice" into main