Skip to content

UX: Prevent Image Dragging Globally #19

@JaYRaNa213

Description

@JaYRaNa213

Summary

Images across the app can be dragged by default, causing unwanted ghost previews and poor UX during interactions (cards, animations, clicks).

Problem

  • Dragging images:
  • Breaks smooth UI interactions
  • Feels unpolished in animated components (cards, sliders)
  • Is unnecessary for a dApp UI

footer image:

Image

header image

Image

Solution

Disable image dragging globally via base CSS.

Changes Implemented

File modified:

// app/globals.css

Change:

  img {
    -webkit-user-drag: none;
    -khtml-user-drag: none;
    -moz-user-drag: none;
    -o-user-drag: none;
    user-drag: none;
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
  }

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions