Browse Source

Just more code style things

pull/4241/head
Splitwirez 6 years ago
parent
commit
ee709082fb
  1. 12
      src/Avalonia.Controls/ToggleSwitch.cs

12
src/Avalonia.Controls/ToggleSwitch.cs

@ -10,11 +10,12 @@ namespace Avalonia.Controls
/// </summary> /// </summary>
public class ToggleSwitch : ToggleButton public class ToggleSwitch : ToggleButton
{ {
Panel _knobsPanel; private Panel _knobsPanel;
Panel _switchKnob; private Panel _switchKnob;
bool _knobsPanelPressed = false; private bool _knobsPanelPressed = false;
Point _switchStartPoint = new Point(); private Point _switchStartPoint = new Point();
double _initLeft = -1; private double _initLeft = -1;
private bool _isDragging = false;
static ToggleSwitch() static ToggleSwitch()
{ {
@ -207,7 +208,6 @@ namespace Avalonia.Controls
_knobsPanelPressed = false; _knobsPanelPressed = false;
} }
bool _isDragging = false;
private void KnobsPanel_PointerMoved(object sender, Input.PointerEventArgs e) private void KnobsPanel_PointerMoved(object sender, Input.PointerEventArgs e)
{ {
if (_knobsPanelPressed) if (_knobsPanelPressed)

Loading…
Cancel
Save