Hi,
First, some disclaimers. I'm a novice JS/Prototype programmer.
Embedded firmware is a different story
There's a very cool feature supported by all the major browsers that
has no name as far as I know.
Turning the scroll wheel on the mouse while holding down the control
key on the keyboar
@T.J. Crowder,
Thanks. It works a little different on Safari, probably b/c it's the
Mac default browser. It does enlarge/shrink the image but not
everything - looks like it's just effecting the text font size. It's a
complete zoom function on Opera.
@Radoslav Stankov,
Thank you! I think your pa
@all,
Another approach would be to find out what the browswer is doing when
it receives the "zoom" event.
I'm thinking maybe there's an attribute setting for each window that's
changed. That would make sense.
It only effects the window with focus, nothing else - so it must track
to the window.
M
Minor update:
TJ is correct. This feature is the same thing in all browswers - the
zoom"in/out" function of every browser.
So, it turns out it can be done 2 ways:
a. cntrl key and "+" or "-"
b. cntrl key and "mouse scroll wheel up or down"
Originally I asked about making a synthetic event for (
@Alex,
Thank you!
Here are my test results for document.body.style.zoom:
IE: yes
NN: no
Safari: no
Chrome:yes
Opera: no
FF: no
This is exactly the kind of thing I'm looking for but different DOM
elements need to be used apparently for each browser with this
approach.
I still think a synthetic e
@Radoslav,
I took some time today to look through your patch. It would make this
function very easy to implement.
It would take the form of a "keypress" event with ctrlkey=true and the
necessary keyCode and charCode values.
What is it's status? Will it make it into a future version of
Prototype
@Matt&Alex,
Yes, a page zoom scales everything not just text. Early testing showed
just changing text size is OK most of the time but can lead to page
mis-alignment issues in some cases.
A synthetic event that replicates either (1) a mouse scroll wheel
movement while cntrl key is held down or, (