File tree Expand file tree Collapse file tree 2 files changed +7
-6
lines changed Expand file tree Collapse file tree 2 files changed +7
-6
lines changed Original file line number Diff line number Diff line change 27
27
utils.i18n/lang?])
28
28
29
29
(def App
30
- [:map { :closed true }
30
+ [:map
31
31
[:tool {:default :transform } Tool]
32
32
[:primary-tool {:optional true } Tool]
33
33
[:pointer-pos {:default [0 0 ]} Vec2]
39
39
[:nearest-neighbors {:optional true } [:sequential NearestNeighbor]]
40
40
[:drag {:optional true } boolean?]
41
41
[:zoom-sensitivity {:default 0.75 } [:and number? pos?]]
42
- [:event-time {:optional true } number?]
42
+ [:event-timestamp {:optional true } number?]
43
43
[:double-click-delta {:default 250 } [:and number? pos?]]
44
44
[:state {:default :idle } State]
45
45
[:grid {:default false :persist true } boolean?]
Original file line number Diff line number Diff line change 65
65
(tool.handlers/add-fx [::event.effects/release-pointer-capture pointer-id]))
66
66
(if (= button :right )
67
67
db
68
- (if (> (- timestamp (:event-time db)) (:double-click-delta db))
69
- (-> (assoc db :event-time timestamp)
70
- (tool.hierarchy/on-pointer-up e))
71
- (tool.hierarchy/on-double-click db e))))
68
+ (if (< 0 (- timestamp (:event-timestamp db)) (:double-click-delta db))
69
+ (-> (dissoc db :event-timestamp )
70
+ (tool.hierarchy/on-double-click e))
71
+ (-> (assoc db :event-timestamp timestamp)
72
+ (tool.hierarchy/on-pointer-up e)))))
72
73
(and primary-tool (= button :middle ))
73
74
(-> (tool.handlers/activate primary-tool)
74
75
(dissoc :primary-tool ))
You can’t perform that action at this time.
0 commit comments