Skip to content

Commit 4b27a97

Browse files
Card's popup disappear on scroll
1 parent 58a15c5 commit 4b27a97

File tree

3 files changed

+12
-3
lines changed

3 files changed

+12
-3
lines changed

Changelog.md

+4
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,10 @@ All notable changes to this project will be documented in this file.
44
The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/)
55
and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.html).
66

7+
## 2.0.2 - 2019-08-14
8+
### Changed
9+
- Card's popup disappear on scroll
10+
711
## 2.0.1 - 2019-08-01
812
### Fixed
913
- Fixed end of page

Taskodrome/Taskodrome.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ public function register()
1111
$this->description = plugin_lang_get("description");
1212
$this->page = 'config_page';
1313

14-
$this->version = "2.0.1";
14+
$this->version = "2.0.2";
1515
$this->requires = array(
1616
"MantisCore" => "2.0.0",
1717
);

Taskodrome/files/scripts/card.js

+7-2
Original file line numberDiff line numberDiff line change
@@ -416,6 +416,7 @@ function Card(id, owner, version, summary, description, severity, priority, prio
416416
this.move = function(h, v) {
417417
if (!m_isMouseDown) {
418418
parentMove(h, v);
419+
m_popup_vis_mgr.hidePopup();
419420
}
420421
};
421422
};
@@ -517,6 +518,7 @@ function Popup(cardWidth, description, severity, priority, reproducibility, /**
517518
function PopupVisibilityManager(/** @type {Drawable} */popup, /** @type {Page} */page) {
518519
var TIMEOUT = 800;
519520

521+
var m_self = this;
520522
var m_mouseOver = false;
521523
var m_mouseMoved = false;
522524
var m_lastPointerPos = null;
@@ -527,8 +529,7 @@ function PopupVisibilityManager(/** @type {Drawable} */popup, /** @type {Page} *
527529
};
528530

529531
this.onMouseDown = function() {
530-
m_mouseOver = false;
531-
popup.hide();
532+
m_self.hidePopup();
532533
};
533534

534535
this.onMouseOver = function(evt) {
@@ -544,6 +545,10 @@ function PopupVisibilityManager(/** @type {Drawable} */popup, /** @type {Page} *
544545
};
545546

546547
this.onMouseOut = function() {
548+
m_self.hidePopup();
549+
};
550+
551+
this.hidePopup = function() {
547552
m_mouseOver = false;
548553
popup.hide();
549554
};

0 commit comments

Comments
 (0)