• Go to the Game
  • Registration
  • Introduction
  • One Minute Interactive Introduction
  • Contact

Developers blog about Operation-B - The Free Strategy Browser Game

bugfix

Overlapping draggables

Posted on May 25, 2014

draggable behind droppable draggable behind draggable

There was a small bug in the code where the draggable unit would be displayed behind other draggable units or droppable units. The draggable unit should always be on top of other elements on the page.

The following code raises the z-index of the draggable at the start of the drag and returns the z-index to normal once the drag stops.


$(div_drag).draggable(
{
	start: function( event, ui ) {

		// Make sure the draggable unit is on top
		$(this).css('z-index', '100');

	},

	stop: function( event, ui ) {

		// Return the z-index back to normal
		$(this).css('z-index', '1');

	}
});

Posted in: bugfix | Tagged: bugfix, jquery

Tags

android app bugfix compression conquest design feature game overview gzip improvement introduction jquery new round portal release technical turn timelimit validation

Follow us on

Follow us on Facebook @OpBnet Follow us on Twitter @OpBnet Follow us on Google+ RSS feed

Recent Posts

  • Conquest round – October 18
  • Android App release 1.4
  • Conquest round – August 13
  • Out with the old, in with the new
  • The need for speed

Recent Comments

    Archives

    • October 2014
    • August 2014
    • June 2014
    • May 2014

    Copyright © 2019 Operation-B - Behind the Scenes.

    Theme by ThemeHall.