Crash when you use mouse & keyboard arrow keys together.
Dieses Issue hat noch niemand übernommen.
Bewertung
- Schwierigkeit
- 3/5
- Geschätzter Aufwand
- 1-2 Tage
- Anfängerfreundlichkeit
- 35/100
Rechercherichtung
Beginne damit, die Schritte der Windows-Beispielanwendung zu reproduzieren, und untersuche anschließend PlacementOperation.Abort(), MoveLogic.Cancel() und DragMoveMouseGesture.OnStopped(), die im Stacktrace genannt werden. Vergleiche das Verhalten mit dem im Issue verlinkten vorgeschlagenen Commit. Fertig ist die Aufgabe, wenn das Kombinieren des Ziehens mit der Maus mit einer Pfeiltaste und das anschließende Loslassen der Maustaste keinen PlacementOperationException mehr auslöst.
Vom Indexierungsmodell aus dem Issue-Text verfasst.
Beschreibung
I found a bug you use your mouse and keyboard up/down/left/right arrow keys together.
To Reproduce:
- Start Sample application on Windows.
- Maximize Main Window.
- Drop a Button on Design Service in Center of Screen.
- Move to Center of button with mouse pointer.
- Press primary mouse button to start moving/dragging button.
- While still holding primary mouse button move left or right with your mouse so that the button moves to a new location (do not release primary mouse button).
- Then Either Press and hold Left, Right, Up or Down Arrow key on Keyboard, while still holding the primary mouse button down
- Depress/Release primary mouse button.
- App Crashes. See below stack trace.
StackTrace:
`PlacementOperation is committed.
at ICSharpCode.WpfDesign.PlacementOperation.Abort()
at ICSharpCode.WpfDesign.Designer.Services.MoveLogic.Cancel()
at ICSharpCode.WpfDesign.Designer.Services.DragMoveMouseGesture.OnStopped()
at ICSharpCode.WpfDesign.Designer.Services.MouseGestureBase.Stop()
at ICSharpCode.WpfDesign.Designer.Services.MouseGestureBase.OnLostMouseCapture(Object sender, MouseEventArgs e)
at System.Windows.Input.MouseEventArgs.InvokeEventHandler(Delegate genericHandler, Object genericTarget)
at System.Windows.RoutedEventArgs.InvokeHandler(Delegate handler, Object target)
at System.Windows.RoutedEventHandlerInfo.InvokeHandler(Object target, RoutedEventArgs routedEventArgs)
at System.Windows.EventRoute.InvokeHandlersImpl(Object source, RoutedEventArgs args, Boolean reRaised)
at System.Windows.UIElement.RaiseEventImpl(DependencyObject sender, RoutedEventArgs args)
at System.Windows.UIElement.RaiseTrustedEvent(RoutedEventArgs args)
at System.Windows.Input.InputManager.ProcessStagingArea()
at System.Windows.Input.InputManager.ProcessInput(InputEventArgs input)
at System.Windows.Input.MouseDevice.ChangeMouseCapture(IInputElement mouseCapture, IMouseInputProvider providerCapture, CaptureMode captureMode, Int32 timestamp)
at System.Windows.Input.MouseDevice.PreNotifyInput(Object sender, NotifyInputEventArgs e)
at System.Windows.Input.InputManager.ProcessStagingArea()
at System.Windows.Input.InputManager.ProcessInput(InputEventArgs input)
at System.Windows.Input.InputProviderSite.ReportInput(InputReport inputReport)
at System.Windows.Interop.HwndMouseInputProvider.ReportInput(IntPtr hwnd, InputMode mode, Int32 timestamp, RawMouseActions actions, Int32 x, Int32 y, Int32 wheel)
at System.Windows.Interop.HwndMouseInputProvider.FilterMessage(IntPtr hwnd, WindowMessage msg, IntPtr wParam, IntPtr lParam, Boolean& handled)
at System.Windows.Interop.HwndSource.InputFilterMessage(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled)
at MS.Win32.HwndWrapper.WndProc(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled)
at MS.Win32.HwndSubclass.DispatcherCallbackOperation(Object o)
at System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Int32 numArgs)
at System.Windows.Threading.ExceptionWrapper.TryCatchWhen(Object source, Delegate callback, Object args, Int32 numArgs, Delegate catchHandler)
[ICSharpCode.WpfDesign.PlacementOperation+PlacementOperationException] - PlacementOperation is committed.
`
I have also done my own fix: here: https://github.com/CorrieMeyer/WpfDesigner/commit/469f6a36c4806d8a8f3d2c6f7af1551b8a1da43d
Not sure if it is the correct way, but if your happy with it I will do a pull request for the fix.
- Vorherrschende Sprache
- C#
- Sterne
- 1.1k
- Forks
- 281
- PR-Merge-Kennzahlen
- Keine gemergten PRs in 30 T.
Entwicklungsumgebung
- Kein Dockerfile und keine Docker-Compose-Datei
- Keine Pull-Request-Vorlage
- Beitragsleitfaden lesen
Erste Schritte
- Lesen Sie das ganze Issue und danach den Beitragsleitfaden des Projekts.
- Schreiben Sie ins Issue, dass Sie es übernehmen — das erspart doppelte Arbeit.
- Forken Sie das Repository und arbeiten Sie in einem Branch.
- Öffnen Sie einen Pull Request, der die Issue-Nummer nennt.
Mehr aus icsharpcode/WpfDesigner
-
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 35/100
icsharpcode/WpfDesigner#121 ·
-
Schwierigkeit 4/5 3-5 Tage Anfängerfreundlichkeit 35/100
icsharpcode/WpfDesigner#101 ·
-
Schwierigkeit 4/5 3-5 Tage Anfängerfreundlichkeit 30/100
icsharpcode/WpfDesigner#88 ·
-
Schwierigkeit 5/5 Über eine Woche Anfängerfreundlichkeit 25/100
icsharpcode/WpfDesigner#81 · 1 Kommentar ·
-
Schwierigkeit 4/5 3-5 Tage Anfängerfreundlichkeit 25/100
icsharpcode/WpfDesigner#72 · 3 Kommentare ·
Alle Issues in icsharpcode/WpfDesigner
Ähnliche Issues
-
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 72/100
umbraco/Umbraco.Automate#612 ·
Maintainer antworten meist innerhalb von 1 Tag
-
崩溃日志只按 CRLF 分行Offen
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 72/100
PCL-Community/PCL-CE#3872 ·
Maintainer antworten meist innerhalb von 1 Tag
-
type:task ux
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 72/100
elsa-workflows/elsa-foundation#5253 ·
Maintainer antworten meist innerhalb von 1 Tag