Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 7 additions & 4 deletions SlideOverKit/Gestures/HorizontalGestures.cs
Original file line number Diff line number Diff line change
@@ -1,16 +1,17 @@
using System;
using System;

namespace SlideOverKit
{
internal class HorizontalGestures: GestureBase, IDragGesture, IDisposable
{
double _leftMax, _leftMin, _rightMax, _rightMin = 0;
bool _isLeftToRight = true;

SlideMenuView _view;
public HorizontalGestures (SlideMenuView view, double density) : base (view, density)
{
CheckViewBound (view);
UpdateLayoutSize (view);
_view = view;
CheckViewBound (_view);
UpdateLayoutSize (_view);
view.HideEvent = LayoutHideStatus;
}

Expand Down Expand Up @@ -107,6 +108,7 @@ public void DragFinished ()

public void LayoutShowStatus ()
{
_view.IsMenuShown = true;
if (RequestLayout != null) {
GetShowPosition ();
RequestLayout (_left, _top, _right, _bottom, _density);
Expand All @@ -117,6 +119,7 @@ public void LayoutShowStatus ()

public void LayoutHideStatus ()
{
_view.IsMenuShown = true;
if (RequestLayout != null) {
GetHidePosition ();
RequestLayout (_left, _top, _right, _bottom, _density);
Expand Down