mirror of
https://github.com/RGBCube/serenity
synced 2025-07-02 22:42:08 +00:00
Everywhere: Rename left/right-click to primary/secondary
This resolves #10641.
This commit is contained in:
parent
a6ccf6659a
commit
d6a0726302
79 changed files with 183 additions and 183 deletions
|
@ -80,7 +80,7 @@ Gfx::IntRect Slider::knob_rect() const
|
|||
|
||||
void Slider::mousedown_event(MouseEvent& event)
|
||||
{
|
||||
if (event.button() == MouseButton::Left) {
|
||||
if (event.button() == MouseButton::Primary) {
|
||||
if (knob_rect().contains(event.position())) {
|
||||
m_dragging = true;
|
||||
m_drag_origin = event.position();
|
||||
|
@ -128,7 +128,7 @@ void Slider::mousemove_event(MouseEvent& event)
|
|||
|
||||
void Slider::mouseup_event(MouseEvent& event)
|
||||
{
|
||||
if (event.button() == MouseButton::Left) {
|
||||
if (event.button() == MouseButton::Primary) {
|
||||
m_dragging = false;
|
||||
return;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue