DragMode.cs 1.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. // Copyright (c) 2024 Vuplex Inc. All rights reserved.
  2. //
  3. // Licensed under the Vuplex Commercial Software Library License, you may
  4. // not use this file except in compliance with the License. You may obtain
  5. // a copy of the License at
  6. //
  7. // https://vuplex.com/commercial-library-license
  8. //
  9. // Unless required by applicable law or agreed to in writing, software
  10. // distributed under the License is distributed on an "AS IS" BASIS,
  11. // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  12. // See the License for the specific language governing permissions and
  13. // limitations under the License.
  14. namespace Vuplex.WebView {
  15. /// <summary>
  16. /// Options for how drag interactions affect
  17. /// WebViewPrefab and CanvasWebViewPrefab.
  18. /// </summary>
  19. /// <seealso cref="WebViewPrefab.DragMode"/>
  20. /// <seealso cref="CanvasWebViewPrefab.DragMode"/>
  21. public enum DragMode {
  22. /// <summary>
  23. /// Drag interactions trigger scrolling (default). On platforms that support
  24. /// IWithTouch, touch events are used instead of mouse events. On platforms
  25. /// that don't support IWithTouch, mouse events are used, but dragging
  26. /// causes the page to be scrolled with IWebView.Scroll().
  27. /// </summary>
  28. DragToScroll,
  29. /// <summary>
  30. /// Drag interactions trigger dragging within the web page
  31. /// via mouse events (e.g. dragging to select text, drag-and-drop).
  32. /// </summary>
  33. /// <remarks>
  34. /// For information on the limitations of drag interactions on iOS and UWP, please see
  35. /// https://support.vuplex.com/articles/hover-and-drag-limitations.
  36. /// </remarks>
  37. DragWithinPage,
  38. /// <summary>
  39. /// Drag interactions have no effect.
  40. /// </summary>
  41. Disabled
  42. }
  43. }