Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7091697
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 28, 20262026-05-28T08:13:07+00:00 2026-05-28T08:13:07+00:00

This might be hard to describe without copying and pasting a ton of code

  • 0

This might be hard to describe without copying and pasting a ton of code here, but I’ll try.

I had to build a custom draggable object using javascript- I’ve used jquery in the past but it didn’t work for this project. I’ve got it mostly working, except for when a user clicks on the object (a DIV) and drags it across the page, his or her cursor changes into the classic i-beam text selector.

No matter what I try, I can’t disable this cursor. I’ve tried putting something like.

this.style.cursor = 'pointer';  

in the ‘onmousedown’ function of the div in question, but as soon as you start to drag, blammo, you have an i-beam cursor. The same is true if I put the above code in the actual dragging function.

I’ve tried disabling text selection in the whole document using css(not an actually solution, as I want people to be able to copy/paste on this site, but just to see if it works) and still, the cursor changes while the user drags.

I guess what I’m really looking for is a way to temporarily disable that i-beam cursor from appearing on my page at all.

Well, thanks in advance for any help.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-28T08:13:08+00:00Added an answer on May 28, 2026 at 8:13 am

    The correct way to do this (works on Chrome, at least):

    var canvas = $('canvas')[0]
    canvas.onselectstart = function () { return false; }
    

    See html5 canvas hand cursor problems.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I realize that without code this might be hard to answer but the problem
This might be hard to describe in the title, here's a sample data: id
This might be a simple question, but I've had a hard time pinning down
This might be a little hard to explain, but I will try. I want
This might sound like a stupid question but just trying to learn something here.
This might not be a hard core programming question, but it's related to some
This might be hard to explain, but I need a way to loop through
I know this might sound silly but I am finding it hard to understand
I realise this might be hard to explain, so let me start by using
This might be a simple question for some people since it was quite hard

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.