feat(epub): complete wxread parity scope
This commit is contained in:
@@ -102,17 +102,8 @@ final class RDEPUBSelectionOverlayView: UIView {
|
||||
}
|
||||
|
||||
if let snapshot,
|
||||
let attachment = snapshot.attachment(at: point) {
|
||||
return attachment.stringRange
|
||||
}
|
||||
|
||||
if let snapshot {
|
||||
let hitDecorations = snapshot.rects(containing: point, in: resolvedDecorations)
|
||||
if let mostSpecific = hitDecorations.min(by: { lhs, rhs in
|
||||
lhs.absoluteRange.length < rhs.absoluteRange.length
|
||||
}) {
|
||||
return mostSpecific.absoluteRange
|
||||
}
|
||||
let absoluteRange = snapshot.absoluteRange(at: point, in: resolvedDecorations) {
|
||||
return absoluteRange
|
||||
}
|
||||
|
||||
for decoration in resolvedDecorations {
|
||||
|
||||
Reference in New Issue
Block a user