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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 4, 20262026-06-04T19:48:54+00:00 2026-06-04T19:48:54+00:00

I have a container that I made draggable with this in its config :

  • 0

I have a container that I made draggable with this in its config :

draggable: {
  direction: 'horizontal',
  constraint: {
      min: { x: 0, y: 0 },
      max: { x: parseInt(screen.width-57), y: 0 }
  },
  listeners: {
    dragstart: function(panel, e, offset){

    },
    drag: function(panel, e, offset){

    },
    dragend: function(panel, e, offset){

    },
    scope: this
  },
}

It’s work fine. Now I would like to prevent the user from dragging the panel when the drag event is being fired. It might sound stupid but, this is to prevent the user to drag the panel directly, he would have to put his finger on the toolbar to drag the panel.

I’ve already tried a few things like

return false;
e.stopEvent();
e.stopPropagation();
e.preventDefault();

But none of them worked. Does anyone have an idea why ?

  • 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-06-04T19:48:55+00:00Added an answer on June 4, 2026 at 7:48 pm

    I finally changed the dragstart event to

    dragstart: {
      fn: function(){
    
      },
      order: 'before'
    },
    

    and return false; worked fine…

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

Sidebar

Related Questions

i have a container box that includes a number of thumbnails. i earlier made
I have a container div element that has overflow:hidden on it. Unfortunately this property
I have an object that contains arrays which is made up of other arrays
I have a container that contains an image that I need to drag from
hi i have a container that has 2 subviews, an image and a label,
Lets say, for example, I have a container that takes up 100% of the
I have a container object that contains of set of objects that is persisted
I have a container MovieClip that serves as a content area that I need
I have a UIView container that has two UIImageView s inside it, one partially
I have a container element that you can drag objects around in. I want

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.