Icon View Thread

The following is the text of the current message along with any replies.
Messages 1 to 5 of 5 total
Thread 2.06 and Pinch Zoom on Tablets
Fri, Jan 13 2017 11:18 AMPermanent Link

Douglas Lyman

Will 2.06 return the pinch-zoom functionality we had in EWB1?   In EW1 we could achieve rich-zoom functionality by changing the html file as follows:

    <meta name="viewport" content="user-scalable=yes,
          width=1024,
          initial-scale=1,
          minimum-scale=0.5,
          maximum-scale=1.5">
Fri, Jan 13 2017 2:00 PMPermanent Link

Emin

Hi,
This will do it:


var
  MetaFormat: TDOMElement;
begin
  MetaFormat := window.document.createElement('meta');
  MetaFormat.setAttribute('name', 'viewport');
  MetaFormat.setAttribute('content', 'user-scalable=yes,width=1024,initial-scale=1,minimum-scale=0.5,maximum-scale=1.5');
  window.document.getElementsByTagName('head')[0].appendChild(MetaFormat);

-
Emin Borbor
Sun, Jan 15 2017 10:17 AMPermanent Link

Douglas Lyman

Thanks Emin.

I was really hoping this would work.  However, still no pinch-zoom in iOS.
Sun, Jan 15 2017 4:53 PMPermanent Link

Emin

Douglas,
disregard my reply. because it does not take into account how JS events handled within EWB.
Wed, Jan 18 2017 2:48 PMPermanent Link

Tim Young [Elevate Software]

Elevate Software, Inc.

Avatar

Email timyoung@elevatesoft.com

Doug,

<< Will 2.06 return the pinch-zoom functionality we had in EWB1?   In EW1 we could achieve rich-zoom functionality by changing the html file as follows: >>

No.  It worked in EWB 1.x because EWB 1.x completely punted on the issue of touch interfaces, whereas EWB 2.x handles all touch interaction directly so that touches behave like clicks, without delays, etc. that are normally present.

Tim Young
Elevate Software
www.elevatesoft.com
Image