Provide option to not create a longpress gesture recognizer
[WebKit-https.git] / Source / WebKit / UIProcess / ios / WKContentViewInteraction.mm
index 61b408c..3434966 100644 (file)
@@ -742,7 +742,9 @@ static inline bool hasFocusedElement(WebKit::FocusedElementInformation focusedEl
     [_highlightLongPressGestureRecognizer setDelegate:self];
     [self addGestureRecognizer:_highlightLongPressGestureRecognizer.get()];
 
+#if HAVE(LINK_PREVIEW)
     if (!self.shouldUsePreviewForLongPress)
+#endif
         [self _createAndConfigureLongPressGestureRecognizer];
 
 #if ENABLE(DATA_INTERACTION)