matching VCL to touch screen coordinates

Ptyl Dragon ptyl at cloudon.com
Tue Aug 13 01:24:42 PDT 2013


Still, this is relevant mainly to zoom (the 2 nd part of my question)
What about the scroll? What determines its granularity, and what would be
the best way to increase its precision, from the current approx 4 -
8 pixels click, to a 1  pixel click?
To clarify, currently, the scroller gets scroll commands on the pixel
level, but it won't cause VCL to redraw, until approx 4 - 8 screen pixels
have been crossed. What could be causing this scaling in rendering
coordinates?

Thanks again
Ptyl

On Monday, August 12, 2013, Ptyl Dragon wrote:

> Ah, integer fractions - i thought it meant percents, but it means a
> representation of rational numbers, through the use of two integers.
> Ok. This info may indeed solve this.
>
> Thanks!
>
> On Monday, August 12, 2013, Thorsten Behrens wrote:
>
>> Ptyl Dragon wrote:
>> > We cannot express the difference between 1023 and 1024, in units of 1%,
>> as
>> > 1% of 1024 is 10.24. So the scale is not sufficient, and even if we
>> fixed
>> > it for iPad, tomorrow there might be a touch device with twice the
>> > resolution.
>> >
>> Hi Ptyl,
>>
>> yes, sure. But vcl itself uses integer fractions to express scaling
>> (check the MapMode class there), as such it should be able to convey
>> the necessary information. Thus the question for code to look at - I
>> seem to miss the point. ;)
>>
>> Cheers,
>>
>> -- Thorsten
>>
>
>
> --
>
> [image: appicon.png]
>
>
> *Ptyl Dragon*
>
> Twitter <http://www.twitter.com/cloudoninc> | LinkedIn<http://www.linkedin.com/company/cloudon>
>  | Facebook <http://www.facebook.com/cloudoninc> | Blog<http://site.cloudon.com/blog>
>
>
>
>
>
>

-- 

[image: appicon.png]


*Ptyl Dragon*

Twitter <http://www.twitter.com/cloudoninc> |
LinkedIn<http://www.linkedin.com/company/cloudon>
 | Facebook <http://www.facebook.com/cloudoninc> |
Blog<http://site.cloudon.com/blog>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/libreoffice/attachments/20130813/54aa98dc/attachment.html>


More information about the LibreOffice mailing list