folder widget fixes
This commit is contained in:
1 parent
accd07f808
commit
23299ad73d
1 file changed
+19
-17
@@ -3214,7 +3214,6 @@ import ObjectiveC.runtime
|
|||||||
OnScreenWidgetView.putWidget(self, into: capturer)
|
OnScreenWidgetView.putWidget(self, into: capturer)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
OnScreenWidgetView.capturer = nil
|
|
||||||
|
|
||||||
guard let superview = superview else { return }
|
guard let superview = superview else { return }
|
||||||
|
|
||||||
@@ -3248,14 +3247,17 @@ import ObjectiveC.runtime
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if OnScreenWidgetView.isVerticallyAligned {
|
if OnScreenWidgetView.capturer == nil, OnScreenWidgetView.editMode {
|
||||||
self.center = CGPoint(x:OnScreenWidgetView.alignedX, y:self.center.y)
|
if OnScreenWidgetView.isVerticallyAligned {
|
||||||
OnScreenWidgetView.isVerticallyAligned = false
|
self.center = CGPoint(x:OnScreenWidgetView.alignedX, y:self.center.y)
|
||||||
}
|
OnScreenWidgetView.isVerticallyAligned = false
|
||||||
if OnScreenWidgetView.isHorizontallyAligned {
|
}
|
||||||
self.center = CGPoint(x:self.center.x, y:OnScreenWidgetView.alignedY)
|
if OnScreenWidgetView.isHorizontallyAligned {
|
||||||
OnScreenWidgetView.isHorizontallyAligned = false
|
self.center = CGPoint(x:self.center.x, y:OnScreenWidgetView.alignedY)
|
||||||
|
OnScreenWidgetView.isHorizontallyAligned = false
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
OnScreenWidgetView.capturer = nil
|
||||||
}
|
}
|
||||||
|
|
||||||
@objc public func setAutoTapIntervalByText(str: String){
|
@objc public func setAutoTapIntervalByText(str: String){
|
||||||
@@ -3414,7 +3416,7 @@ import ObjectiveC.runtime
|
|||||||
return
|
return
|
||||||
}
|
}
|
||||||
if autoDockIsDocked {
|
if autoDockIsDocked {
|
||||||
autoDockRestoreWidget(animated: true)
|
autoDockRestoreWidget(animated: false)
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
autoDockStopCountdown()
|
autoDockStopCountdown()
|
||||||
@@ -3646,7 +3648,13 @@ import ObjectiveC.runtime
|
|||||||
|
|
||||||
let completion: (Bool) -> Void = { _ in
|
let completion: (Bool) -> Void = { _ in
|
||||||
self.autoDockDockedCenter = nil
|
self.autoDockDockedCenter = nil
|
||||||
self.autoDockRestartCountdownIfNeeded()
|
self.autoDockIsDocked = false
|
||||||
|
self.restartAutoDockCountdown()
|
||||||
|
if OnScreenWidgetView.autoDockRestoreInitByViewResize {
|
||||||
|
OnScreenWidgetView.autoDockRestoreInitByViewResize = false
|
||||||
|
OnScreenWidgetView.deferSlideGestureDueToAutoDockRestore = false
|
||||||
|
}
|
||||||
|
OnScreenWidgetView.deferScreenEdgeSysGesturesDueToOnScreenWidgets = false
|
||||||
}
|
}
|
||||||
|
|
||||||
if animated {
|
if animated {
|
||||||
@@ -3658,13 +3666,7 @@ import ObjectiveC.runtime
|
|||||||
options: [.allowUserInteraction, .curveEaseOut],
|
options: [.allowUserInteraction, .curveEaseOut],
|
||||||
animations: animations,
|
animations: animations,
|
||||||
completion: {_ in
|
completion: {_ in
|
||||||
self.autoDockIsDocked = false
|
completion(true)
|
||||||
self.restartAutoDockCountdown()
|
|
||||||
if OnScreenWidgetView.autoDockRestoreInitByViewResize {
|
|
||||||
OnScreenWidgetView.autoDockRestoreInitByViewResize = false
|
|
||||||
OnScreenWidgetView.deferSlideGestureDueToAutoDockRestore = false
|
|
||||||
}
|
|
||||||
OnScreenWidgetView.deferScreenEdgeSysGesturesDueToOnScreenWidgets = false
|
|
||||||
}
|
}
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in new issue
Block a user