Skip to content

Commit

Permalink
Motify DragDropHandler Enable default vaule to false
Browse files Browse the repository at this point in the history
  • Loading branch information
qwqcode committed May 8, 2019
1 parent b2909e1 commit 2024639
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions Nacollector/Browser/Handler/DragDropHandler.cs
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
using CefSharp.Enums;
using System;
using System.Collections.Generic;
using System.Diagnostics;
using System.Drawing;
using System.Linq;
using System.Text;
Expand All @@ -14,9 +15,9 @@ namespace Nacollector.Browser.Handler
*/
public class DragDropHandler : IDragHandler
{
public Region draggableRegion = new Region();
public Region draggableRegion = null;
public event Action<Region> RegionsChanged;
public bool Enable { get; set; } = true;
public bool Enable { get; set; } = false;

public bool OnDragEnter(IWebBrowser browserControl, IBrowser browser, IDragData dragData, DragOperationsMask mask)
{
Expand All @@ -25,7 +26,7 @@ public bool OnDragEnter(IWebBrowser browserControl, IBrowser browser, IDragData

public void OnDraggableRegionsChanged(IWebBrowser browserControl, IBrowser browser, IList<DraggableRegion> regions)
{
if (!Enable)
if (Enable == false)
{
return;
}
Expand Down

0 comments on commit 2024639

Please sign in to comment.