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 878289
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 15, 20262026-05-15T11:44:53+00:00 2026-05-15T11:44:53+00:00

I have a fixed size image and I want to show a subset of

  • 0

I have a fixed size image and I want to show a subset of the image. I want to allow the user to click and drag to move the visible area of the image.

The Image class has a nice setUrlAndVisibleRect method which can handle the image area display. The problem I am having is getting the mouse click and drag to work.

I registered Mouse Down/Up/Move handlers and it all looked very promising in Firefox. Then I tested it in IE8…

The behaviour I see in IE8 as I click and drag:
– MouseDown event when I click
– browser then displays a “no entry” symbol cursor as I drag
– finally when I release I get no mouse up event.

What is the correct way to handle this in a cross browser fashion?

  • 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-15T11:44:54+00:00Added an answer on May 15, 2026 at 11:44 am

    You want to use MouseDownEvent.preventDefault(). This prevents the browser from taking the default action for the event, which is to initiate the drag action that you see.

    If that doesn’t work try MouseMoveEvent.preventDefault(). One of them will kill it.

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

Sidebar

Related Questions

I want to show background-image on body. I have a css file and I
I want to make a container of fixed size that will inside have an
I have a background image that I want to show after the top header.
I have docbook generated HTML that contains small, fixed size images. All these images
I have a list of thumbnails. They have fixed size. I would like that
The problem: 1) I have buckets of fixed size, in my case 64. This
I have a div with a fixed size of 100px. scrollWidth and scrollHeight works
I have a CDHTMLDialog running in IE that has a fixed size that I
I've an array of fixed size in C . There I might have any
SOLVED: Per the two responses about having a fixed size, i do have a

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.