Show
Ignore:
Timestamp:
10/20/07 15:17:40 (1 year ago)
Author:
daboo
Message:

Fix for drag and drop cell offset issues when lists are scrolled.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • Mulberry/trunk/Linux/Sources/Application/Calendar/Calendar_View/Day_Week_View/CDayWeekTable.cp

    r21 r108  
    127127                                { 
    128128                                        STableCell      hitCell; 
    129                                         JPoint          imagePt; 
    130                                         LocalToImagePoint(mContextPoint, imagePt); 
    131  
    132                                         if (GetCellHitBy(imagePt, hitCell)) 
     129                                        if (GetCellHitBy(mContextPoint, hitCell)) 
    133130                                        { 
    134131                                                // Broadcast double-click if in day area 
     
    173170iCal::CICalendarDateTime CDayWeekTable::GetClickDateTime(const JPoint& localPt) const 
    174171{ 
    175         JPoint imagePt; 
    176         LocalToImagePoint(localPt, imagePt); 
    177172        STableCell hitCell; 
    178         if (GetCellHitBy(imagePt, hitCell)) 
     173        if (GetCellHitBy(localPt, hitCell)) 
    179174        { 
    180175                if (hitCell.row == cAllDayRow) 
     
    196191                        uint32_t bot_secs = mEndHour * 60 * 60; 
    197192 
    198                         uint32_t click_secs = top_secs + (bot_secs - top_secs) * (imagePt.y - cellTop) / (cellBottom - cellTop); 
     193                        uint32_t click_secs = top_secs + (bot_secs - top_secs) * (localPt.y - cellTop) / (cellBottom - cellTop); 
    199194 
    200195                        // Round to nearest 15 minute (900 second) interval