Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
project
drupal
Commits
45439f71
Commit
45439f71
authored
Jan 04, 2006
by
Steven Wittens
Browse files
-
#42913
: Avoid resizable textarea drag handler loop
-
#42911
: Remove left-over event handling code
parent
7a2d7d09
Changes
1
Hide whitespace changes
Inline
Side-by-side
misc/textarea.js
View file @
45439f71
...
...
@@ -30,7 +30,6 @@ function textArea(element) {
this
.
wrapper
.
appendChild
(
this
.
grippie
);
this
.
grippie
.
dimensions
=
dimensions
(
this
.
grippie
);
this
.
grippie
.
onmousedown
=
function
(
e
)
{
ta
.
beginDrag
(
e
);
};
this
.
element
.
onmouseup
=
function
(
e
)
{
ta
.
endDrag
(
e
);
};
// Set wrapper and textarea dimensions
this
.
wrapper
.
style
.
height
=
this
.
dimensions
.
height
+
this
.
grippie
.
dimensions
.
height
+
1
+
'
px
'
;
...
...
@@ -62,6 +61,11 @@ function textArea(element) {
}
textArea
.
prototype
.
beginDrag
=
function
(
event
)
{
if
(
document
.
isDragging
)
{
return
;
}
document
.
isDragging
=
true
;
event
=
event
||
window
.
event
;
// Capture mouse
var
cp
=
this
;
...
...
@@ -103,5 +107,6 @@ textArea.prototype.endDrag = function (event) {
// Restore opacity
this
.
element
.
style
.
opacity
=
1.0
;
document
.
isDragging
=
false
;
}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment