From d17ec757ff6980ae427b6b7ad20492fda5359d82 Mon Sep 17 00:00:00 2001 From: LiuChang Date: Wed, 21 Sep 2022 15:55:21 +0800 Subject: [PATCH] Fix the problem that the Arabic share button cannot be clicked. --- SKPhotoBrowser/SKToolbar.swift | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/SKPhotoBrowser/SKToolbar.swift b/SKPhotoBrowser/SKToolbar.swift index 912efd65..d55cbbe8 100644 --- a/SKPhotoBrowser/SKToolbar.swift +++ b/SKPhotoBrowser/SKToolbar.swift @@ -33,7 +33,7 @@ class SKToolbar: UIToolbar { override func hitTest(_ point: CGPoint, with event: UIEvent?) -> UIView? { if let view = super.hitTest(point, with: event) { - if SKMesurement.screenWidth - point.x < 50 { // FIXME: not good idea + if point.x < 50 || SKMesurement.screenWidth - point.x < 50 { // FIXME: not good idea return view } }