[Proto-Scripty] Re: How to fire a custom/synthetic Control key + mouse scroll wheel movement event?

2009-10-08 Thread tcupolo
@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

[Proto-Scripty] Re: How to fire a custom/synthetic Control key + mouse scroll wheel movement event?

2009-10-08 Thread tcupolo
@MattAlex, 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,

[Proto-Scripty] Re: How to fire a custom/synthetic Control key + mouse scroll wheel movement event?

2009-10-02 Thread tcupolo
@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

[Proto-Scripty] How to fire a custom/synthetic Control key + mouse scroll wheel movement event?

2009-10-01 Thread tcupolo
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

[Proto-Scripty] Re: How to fire a custom/synthetic Control key + mouse scroll wheel movement event?

2009-10-01 Thread tcupolo
@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

[Proto-Scripty] Re: How to fire a custom/synthetic Control key + mouse scroll wheel movement event?

2009-10-01 Thread tcupolo
@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.

[Proto-Scripty] Re: How to fire a custom/synthetic Control key + mouse scroll wheel movement event?

2009-10-01 Thread tcupolo
Minor update: TJ is correct. This feature is the same thing in all browswers - the zoomin/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 (b) but