Open System Preferences → Accessibility → Pointer Control → Mouse & Trackpad. Now tap on Trackpad Options → select the box next to Enable Dragging → then from the dropdown menu, select with drag lock.