Bug 390615

Summary: Flags placement on mouse click instead of unclick
Product: [Applications] kmines Reporter: Bartłomiej Wacławik <bwaclawik>
Component: generalAssignee: Dmitry Suzdalev <dimsuz>
Status: RESOLVED FIXED    
Severity: wishlist CC: kde-games-bugs-null
Priority: NOR    
Version First Reported In: unspecified   
Target Milestone: ---   
Platform: Neon   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:

Description Bartłomiej Wacławik 2018-02-17 16:24:12 UTC
In current version, flags are placed in field where cursor was in moment of right button unclick. It's annoying in fast play, as flag is often placed in wrong square (users generally click to place the flag, not hold the button and unclick in order to place).
So better approach is to place flag on click (or maybe it would be good solution to let user choose it in options).
Comment 1 Albert Astals Cid 2023-08-22 22:07:52 UTC
Git commit 72c17fe8cbdf22beb7ae43297a2e06b8e6532b28 by Albert Astals Cid, on behalf of Peter Ye.
Committed on 23/08/2023 at 00:07.
Pushed by aacid into branch 'master'.

Add option to place flag on mouse press instead of release

On other popular minesweeper implementations like https://minesweeper.online/ and [Minesweeper X](https://minesweepergame.com/download/minesweeper-x.php), a flag is placed immediately when you press your mouse down.

This makes the gameplay smoother, and it allows the [1.5 click technique](https://www.minesweeper.info/wiki/1.5_Click) to work properly.

M  +25   -0    src/generalopts.ui
M  +8    -0    src/kmines.kcfg
M  +25   -14   src/minefielditem.cpp
M  +4    -1    src/minefielditem.h

https://invent.kde.org/games/kmines/-/commit/72c17fe8cbdf22beb7ae43297a2e06b8e6532b28