disable default drag handling

This commit is contained in:
pypy
2020-06-28 16:39:15 +09:00
parent 9b6b42e11e
commit 88990fd82e
4 changed files with 27 additions and 0 deletions

23
NoopDragHandler.cs Normal file
View File

@@ -0,0 +1,23 @@
// Copyright(c) 2019 pypy. All rights reserved.
//
// This work is licensed under the terms of the MIT license.
// For a copy, see <https://opensource.org/licenses/MIT>.
using System.Collections.Generic;
using CefSharp;
using CefSharp.Enums;
namespace VRCX
{
public class NoopDragHandler : IDragHandler
{
bool IDragHandler.OnDragEnter(IWebBrowser chromiumWebBrowser, IBrowser browser, IDragData dragData, DragOperationsMask mask)
{
return true;
}
void IDragHandler.OnDraggableRegionsChanged(IWebBrowser chromiumWebBrowser, IBrowser browser, IFrame frame, IList<DraggableRegion> regions)
{
}
}
}