Skip to content

Commit

Permalink
- Disable drag & drop on WebView transcript.
Browse files Browse the repository at this point in the history
  • Loading branch information
javerous committed Apr 7, 2016
1 parent b302868 commit 42a79a7
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions TorChat/TorChat/TCChatTranscriptViewController.m
Original file line number Diff line number Diff line change
Expand Up @@ -208,6 +208,16 @@ - (NSArray *)webView:(WebView *)sender contextMenuItemsForElement:(NSDictionary
return nil;
}

- (NSUInteger)webView:(WebView *)webView dragSourceActionMaskForPoint:(NSPoint)point
{
return WebDragSourceActionNone;
}

- (NSUInteger)webView:(WebView *)webView dragDestinationActionMaskForDraggingInfo:(id <NSDraggingInfo>)draggingInfo
{
return WebDragDestinationActionNone;
}

- (void)webView:(WebView *)sender didFinishLoadForFrame:(WebFrame *)frame
{
NSView *documentView = sender.mainFrame.frameView.documentView;
Expand Down

0 comments on commit 42a79a7

Please sign in to comment.