snapThreshold property
距离边缘多少像素以内才触发吸边。
- 为 null:只要 snapToEdge 为 true,就始终吸边;
- 不为 null:最近边缘距离大于该值时,不吸边。
吸边优先级:左右优先;只有左右都超出阈值(或相对更远), 且上下相对更近时,才吸上下。
Implementation
final double? snapThreshold;
距离边缘多少像素以内才触发吸边。
吸边优先级:左右优先;只有左右都超出阈值(或相对更远), 且上下相对更近时,才吸上下。
final double? snapThreshold;