webengine/webkitutils/stmgesturefw/src/pinchgesturerecogniser.cpp
branchRCL_3
changeset 59 1f3c3f2f5b0a
parent 42 d39add9822e2
equal deleted inserted replaced
58:220a17280356 59:1f3c3f2f5b0a
    57     }
    57     }
    58 #if !defined(ADVANCED_POINTER_EVENTS)
    58 #if !defined(ADVANCED_POINTER_EVENTS)
    59     // Look at the events to see if it looks like pinch in single touch
    59     // Look at the events to see if it looks like pinch in single touch
    60     // WARNING: this code is a hack : in single touch capacitive touch device (like Alvin with 52.50) it works so-and-so,
    60     // WARNING: this code is a hack : in single touch capacitive touch device (like Alvin with 52.50) it works so-and-so,
    61     // because the pointer events were reported from the corners of the rectangle formed by two fingers pressing.
    61     // because the pointer events were reported from the corners of the rectangle formed by two fingers pressing.
    62     // In resistive touch device like Tube or Ivalo the reported points are somewhere int he middle between the fingers
    62     // In resistive touch device like S60_50 or PF_52_50 the reported points are somewhere int he middle between the fingers
    63     // and jumping a lot, so it is very difficult to get it right.
    63     // and jumping a lot, so it is very difficult to get it right.
    64     if (numOfActiveStreams == 1)
    64     if (numOfActiveStreams == 1)
    65     {
    65     {
    66         // Then look at the event stream, first we need to see a hold and then a fast jump
    66         // Then look at the event stream, first we need to see a hold and then a fast jump
    67         const stmUiEventEngine::MUiEvent* puie = pge->getUiEvents(0);
    67         const stmUiEventEngine::MUiEvent* puie = pge->getUiEvents(0);