History | Log In     View a printable version of the current page.  
Issue Details (XML | Word | Printable)

Key: LPP-5547
Type: Bug Bug
Status: Closed Closed
Resolution: Fixed
Priority: P0 P0
Assignee: Unassigned
Reporter: Fabian Garcia Silva
Votes: 0
Watchers: 0
Operations

If you were logged in you would be able to see more operations.
OpenLaszlo

DHTML: Dragging the bottom of the "Check out" vertical tab to the right and then to the left, without a click and moved the mouse in both directions (left and right) the vertIcal tab follows the mouse.

Created: 05/Mar/08 09:38 AM   Updated: 29/Jun/08 02:15 PM
Component/s: SA - Amazon
Affects Version/s: RingDing (4.1)
Fix Version/s: RingDing (4.1)

Time Tracking:
Not Specified

File Attachments: 1. File drag.rar (598 kb)

Environment: Windows FF2, Linux FF2, MAC OSX FF2 (DHMTL)

Severity: Minor
Fixed in Change#: 10,108
Fixed in branch: trunk
Runtime: N/A
Fix in hand: False


 Description  « Hide
Dragging the bottom of the "Check out" vertical tab to the right and then to the left, without a click and moved the mouse in both directions (left and right) the vertcal tab follows the mouse.

1.- Launch the app in DHTML.
2.- Drag to the "Check out" vertical tab from the bottom.
3.- Drag to the "Check out" vertical tab from the bottom.
4.- Without click, moved the mouse in both directios (left and right).

Expected Result.
The "Check out" vertical tab should be in the correct place.

Current Result:
The "Check out" vertical tab follows the mouse.

 All   Comments   Work Log   Change History      Sort Order: Ascending order - Click to sort in descending order
Fabian Garcia Silva - 05/Mar/08 09:46 AM
This "drag.rar" file contains a "Shockwave Flash Object" embedded in a "drag.swf" file, this file shows the bug. (the "drag.swf" file must be opened with Internet Explorer)

Mamye Kratt - 05/Mar/08 10:29 AM
I confirmed this.

Mamye Kratt - 10/Apr/08 12:48 PM
(trunk 4 build r8604)

This is still a problem.

Mamye Kratt - 28/Apr/08 12:23 PM
(trunk 4 build r8804)
Still a problem.

Mamye Kratt - 02/May/08 11:43 AM
(trunk 4 build r8964 - 4.2a3)

This seems to be fixed now.


Mamye Kratt - 02/May/08 11:44 AM
Closing, problem went away.

Mamye Kratt - 02/May/08 12:08 PM
(trunk 4 build r8964 4.2a3)
This is not fixed, I was wrong.

Max Carlson - 20/May/08 12:38 PM
Phil, please isolate this and assign to me.

Philip Romanik - 19/Jun/08 03:42 PM
I can't reproduce this. There have been many mouse-related upgrades in the last week. The change revision is TOT.

Mamye Kratt - 24/Jun/08 12:46 PM
(trunk 4 build r9939)

Fixed.

Mamye Kratt - 27/Jun/08 11:46 AM
(trunk 4 build r10052)

This is still broken - try FF2/XP/dhtml

Mamye Kratt - 27/Jun/08 11:59 AM
(trunk 4 build r10052)

Also if you use the mouse to scroll and scroll past the bottom of the review area the scrollbar scrolls without clicking the mouse.

Philip Romanik - 27/Jun/08 01:01 PM
I can reproduce the issue but I have to move the mouse outside of the canvas while holding the mouse button down.

Use FF2/dhtml:

1. click and drag the size bar that controls how big the shopping cart/wish list/check out tabs are.
2. While holding down the mouse button, move the mouse to the right and outside the canvas area.
3. Release the mouse button.
4. When you move the cursor into the canvas the app thinks the mouse is still being dragged.

It appears as though dragging is not terminated when you move the mouse outside the canvas.

Philip Romanik - 27/Jun/08 01:14 PM
This is a small app that demonstrates the issue. Drag the box outside the canvas and release the mouse in FF2/dhtml.

<canvas width="400" height="400" bgcolor="0xeeeeee">

  <view x="10" y="10" width="32" height="32" bgcolor="red"
        onmousedown="dragging.setAttribute('applied', true)"
        onmouseup="dragging.setAttribute('applied', false); stop()">
    <dragstate name="dragging"/>
  </view>
</canvas>


Philip Romanik - 27/Jun/08 01:33 PM
This is a better example. It shows that FF2/dhtml stops sending mouse events when the mouse it outside the canvas. Events continue in swf when the mouse is down.

<canvas width="400" height="400" bgcolor="0xeeeeee" debug="true">

  <handler name="onmousemove">
     Debug.write('mouse', box.x, box.y);
  </handler>

  <view id="box" x="10" y="10" width="32" height="32" bgcolor="red"
        onmousedown="dragging.setAttribute('applied', true)"
        onmouseup="dragging.setAttribute('applied', false);">
    <dragstate name="dragging"/>
  </view>
</canvas>



Max Carlson - 27/Jun/08 11:14 PM
r10108 | max | 2008-06-27 23:13:19 -0700 (Fri, 27 Jun 2008) | 16 lines
Changed paths:
   M /openlaszlo/trunk/WEB-INF/lps/lfc/kernel/dhtml/LzMouseKernel.js

Change 20080627-maxcarlson-e by maxcarlson@Roboto on 2008-06-27 22:51:00 PDT
    in /Users/maxcarlson/openlaszlo/trunk-clean
    for http://svn.openlaszlo.org/openlaszlo/trunk

Summary: Fix onmouseupoutside events in dhtml

Bugs Fixed: LPP-5547 - DHTML: Dragging the bottom of the "Check out" vertical tab to the right and then to the left, without a click and moved the mouse in both directions (left and right) the vertIcal tab follows the mouse., LPP-6125 - onmouseupoutside events not triggered outside of canvas in DHTML, work fine in SWF (blocker for LPP-1788)

Technical Reviewer: promanik
QA Reviewer: hminsky

Details: Listen for onmouseup on window.top if window.top != window.

Tests: Dragging photos outside the window in lzpix and releasing button, testcases in LPP-5547 and LPP-6125

Mamye Kratt - 29/Jun/08 02:15 PM
(trunk 4 build r10123)